Ask a Question

scroll a dropdown list

Regular Contributor

scroll a dropdown list

How can i scroll a dropdown list if there are more than 200 entries.
only 6 item shown on screen ... if i need to select 7th item then i need to scroll that dropdown ... and then i can choose that item
how can i solve it

Esteemed Contributor

I'm not 100% familiar with the particulars of mobile testing... but I know that for desktop and web testing, for a drop-down control, if it has the "ClickItem" method, you don't need to scroll before you click... you can call the "ClickItem" to click on the particular item and TestComplete will take care of any necessary scrollign.

Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Regular Contributor

Hi tristaanogre,
also problem has been resolved by using smoothScrollToPosition() ... that helps to find item position in dropdown.
I tried to solve it by using ClickItem but it sometimes work and sometimes not.. I don't know what is exactly problem with ClickItem 

I have seen cases where a list is longer than the screen and depending on how it was developped, the items are not created (added to the tree) until you they are shown on screen (via scroll)!

Win10 / Server 2016 - Testing Delphi Application, Dynamic AX, Web, XamarinForms Mobile app iOS and Android over Appium, TC 15 and TestExecute
Showing results for 
Search instead for 
Did you mean: