/
"SCROLL_TO" Command
"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:
Inline XPath:
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:
, multiple selections available,
Related content
"SCROLL_TO_DYNAMIC" Command
"SCROLL_TO_DYNAMIC" Command
Read with this
"CLICK" Command
"CLICK" Command
Read with this
10. XPath Cheat Sheet
10. XPath Cheat Sheet
Read with this
"HOVER" Command
"HOVER" Command
Read with this
"GET_WEB_VALUE" Command
"GET_WEB_VALUE" Command
Read with this
"CLEAR" Command
"CLEAR" Command
Read with this