"SCROLL_TO" Command

Description: This command scrolls to a specific element on screen defined by a locator.

Usage Scenario: Suppose we want to scroll to the Reference app footer.

Procedure: Define a locator for the footer. The HTML tag of the footer is:

<p class="text-muted pull-right" style="">Social Network 1.0.0.95 Last Updated 2020-04-07_09-04 | Copyright © 2020 Subject7 Inc</p>

and the XPath is

//p[contains(text(),'Social Network')]

Then select the locator in your command options. Your step will look like this:

Web Locator:

image-20240223-120353.png

Inline XPath:

image-20240223-120424.png

See the Test Library path: subject7_samples/subject7_intermediate_suite/subject7_existing_communities_screenshot

The video following video demonstrates how scrolling takes place to reach the Social Network footer as part of execution of “subject7_existing_communities_screenshot” test case in “subject7_samples” folder:

 

Related pages