Forum Discussion
So how would you rename the panel so that it shows as blank when its beginning because when I set the manual
test the panel name comes up with the name I selected.
Example
textnode13
panelXXXXX2
The panel name doesn't get populated until it is selected so what I am trying to do is work around that issue.
Hi,
It is my guess that you are working not with a real dropdown, but with a set of objects (text field, panel, something else) that is orchestrated by some page script and behaves like dropdown.
If my guess is correct, then your code should work with those objects sequentially. For example:
-- Click text field;
-- Wait until the corresponding panel appears on the screen;
-- Wait until this panel is populated with data;
-- Search for the object that emulates dropdown's list element and which contains required data;
-- Click the found object.
Effectively, the above procedure will emulate selection of some element from real dropdown's list.
- AlexKaras3 years agoChampion Level 3
Hi,
Text below is my another guess as I did not see any screenshot example of the UI portion been discussed.
Panel's binding to textboxes depends on your application. It might be that every textbox has its own panel that is opened when textbox is clicked. However it might be that the same panel is opened every time when any textbox is clicked. This is something that you need to figure out with the help of either Object Browser or your developers.
> how I can setup the TestComplete so that I can automatically have it randomly pick a panel option
After you got the panel, you need to do the following:
-- Wait until panel is populated with data (available options);
-- Get the number of options;
-- Generate a random number between 1 and number of options;
-- Click corresponding option.
- Largent8033 years agoContributor
Effectively what you describe is correct.
I have multiple textnode's and the panel becomes populated and visible when a option is selected.
So I need to understand how I can setup the TestComplete so that I can automatically have it randomly pick
a panel option from the textnode drop down list.
Is there a specific way that I need to set it up so that each textnode that I am using can be setup with the panel options?
Related Content
- 7 months agoMehwishDaud
- 5 years agokate123
- 5 years agom_essaid