tashish
5 years agoNew Contributor
How to ScrollUp/Down web page to find a specific element? (Python)
I want to create a generic function for scroll up/down which will perform the function until the element is visible
Hi tashish! If you want to find a specific element on a page, you can use special TestComplete features. If an element exists on a page, the tool will find it even if it's under the scroll. I recommend that you read the following article containing more information about finding objects on a web page:
https://support.smartbear.com/testcomplete/docs/app-testing/web/general/common-tasks/finding-objects/about.htmlIf you do need to scroll until the target object, please use Alex's suggestion - you need to call the scrollIntoView method. You can find an example of how to do this on one of the previous conversations: