I have a list with elements, and i want to scroll down through it until a certain element is visible, so then it will be selected.
I wrote this code:
Code: Select all
Public Sub ScrolldownUserCodeMethod() Dim i As Integer For i = 1 To 50 Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'AdministrationAtQa.FormDesktopContainer.ScrollDownContinuousButton' at 9;4.", repo.AdministrationAtQa.FormDesktopContainer.ScrollDownContinuousButtonInfo,repo.AdministrationAtQa.FormDesktopContainer.ScrollDownContinuousButtonInfo, new RecordItemIndex(1)) repo.AdministrationAtQa.FormDesktopContainer.ScrollDownContinuousButton.Click("9;4") if (repo.AdministrationAtQa.FormDesktopContainer.FirstClassInfo).exists() Then Exit For End If Next End Sub
The only problem, is after each click on the scrolling button, I get a waiting time... which slows the test down considerably.
I reduced the search timeout for all the elements in the code, for only 10ms.. and still i get this waiting time...
can you help me know why?