Forum Discussion
5 Replies
- rraghvani
Champion Level 3
Providing the object appears in the Object Browser, and the action you want to perform - if performing a Click action, TestComplete will automatically scroll down the web page (start from top of page),
VisibleOnScreen = false.until the VisibleOnScreen property becomes true, and then perform the Click action.
TestComplete will automatically scroll down, until VisibleOnScreen = trueYou could also implement your own function (which can be called from your Keyword Test), and call scrollIntoView() on the object - providing web element has that method.
- Hassan_Ballan
Champion Level 3
If this is a lazy load page (items only load when page is crolled) you first you need to scroll the page all the way down to load all items and be available in the Browser DOM.
Before interacting with the element in question it needs to be visible on the screen and you need to call the ScrollIntoView() method.
๐ Found it helpful? Click Like
โ Issue resolved? Click Mark as Solution - scot1967
Champion Level 3
Another.... (Mouse Wheel) you can drag as well. I won't spam you with it that one though.
https://support.smartbear.com/testcomplete/docs/app-objects/simulating/mouse-wheel-actions.html#KDT - scot1967
Champion Level 3
.... Link to a good resource page...
- scot1967
Champion Level 3
Hello Nick,
The best bet is to use 'Call Object Method' on the scrollbar objects on your web page wVScrollBar and wHScrollBar. There are methods on these objects to move the scrollbar. Another way could be to use key combos. You may want to use both ways to fully check it in the way a user would interact with it.
... If you find my posts helpful drop me a like! ๐ Be sure to mark or post the solution to help others out and to credit the one who helped you. ๐