Contributions
How can I set the value of a selector at runtime?
Hello, I have a scenario that needs to iterate select a value from a dropdown every time it runs. Typically, I use the FindElement action in combination with an xpath expression to click on the required value. My problem is that element that identifies the dropdown changes depending on action on previous steps. Is it possible to nest FindElement actions? Is it possible to set NameMapping objects properties from a test run? Thanks.Solved507Views0likes3CommentsRe: Inconsistent Keys Method Behavior
Hey everyone. Thanks for the replies. The control does not have a ClickItem method and when I recorded and played the script back it failed. I added a breakpoint to try and spy the object, but I got the "Member not found" error. The good news is that I got it to work. Here is what I did, For the dropdown, I was able to click on it to display the list of values, then, instead of sending the keys action to the dropdown, I sent them to the parent element, in the case the page. The textbox could be solved in a similar fashion I guess, but it was just easier to log out, close the browser and then log in again with the next user. Have a good one.631Views0likes0CommentsInconsistent Keys Method Behavior
Hi, The keys method used in dropdown and textbox fields does not work properly. When invoked, the focus is shifted from the field to the browser window tab strip and when I try to bring the focus back on the field, the list of values is lost or the text is not entered in the field. Not sure if this is a tool or a browser problem, but apparently there were no updates that could bring in this problem. It worked fine a week ago, even before the new TestComplete version was launched. I updated TestComplete, expecting the problem to go away but it is not the case. I am also getting a weird Member Not Found error if I try to spy during playback to debug. Attached, two videos showing the issue. Thanks.Solved694Views0likes5CommentsProject Variables Missing From Project Copy
Hello, I made a copy of a folder containing the TestComplete project files into a new location using the Windows Explorer. When I accessed the copy project, I noticed that the project variables are missing. I think it is tcls files the config files that store project variables. Is it possible that the project variables are stored not under the project folder? I will recreate the variables manually, but I thought I'd ask anyways. Thanks.787Views0likes6CommentsPersistent Variables Default Value Programmatic Update
Hi, I am using Persistent Project Variables to drive the URL in which the test will run. The variable is assigned a value from a keyword test. What is happening is that the script updates the Local value and not the Default.value. I am interested in updating the Default value because otherwise, the version control does not detect any changes in the file system and so no push operation can be performed. Basically, what I am trying to do is to update multiple variables based on the value of one variable, but temporary variables do not persist the values, and persistent variables updated via automation are only updated in the local value. It was interesting to see that the version control system only detects changes when the Temporary Variable or Persistent Variable in the Default Value, value are updated. Any ideas? Otherwise seems like the only option is to manually change the values. Thanks in advance.Solved594Views0likes2Comments