Forum Discussion
OK, technically, I don't think you need to call DropDown() first. ClickItem will do the drop down call and click on the item... in your case, it will click on the 4th item down the list (index 3).
So, your code looks, generally, OK. So, when you run it, what do you get? Do you get errors? If so, what errors?
In all cases I get this error
The drop-down box cannot be opened
- tristaanogre5 years agoEsteemed Contributor
Is there an action you're attempting before you attempt the drop down? This could be a timing issue where the automation is running faster than the application can keep up. Try dropping an aqUtils.Delay(5000) before your var statement and see if that helps... if so, we have some options to fix it.
- mikakoistinen5 years agoContributor
I had also problems with dropdown. I noticed that best way to use them was by keyboard.
Just figure what keystorkes it requires and then make a procedure to do them.
This code is not tested, but I imagine that it would be something like this.
procedure selectfromDropDown( dropdown , index)
vari;
begin
for i:= 0 to index do
dropdown.keys('[Down]');
dropdown.keys('[Enter]');
end;
Related Content
- 8 months agoMehwishDaud
- 12 months agolokwk216
- 5 years agom_essaid
Recent Discussions
- 22 hours agovladd1