Scroll by & Scroll to
Comments
-
Hi rvmseng,
Please note that the Scroll By and Scroll To can only scroll the entire window. They cannot scroll a sub-frame or a scrolling element (an element whose "overflow" is set to "scroll").
Also, the Scroll By and Scroll To commands only work using the "Selenium WebDriver" playback engine. Otherwise SOAtest will report an error like "Unknown Command: scrollTo."
If you are trying to scroll to an object in a frame or scrolling element, you can sometimes accomplish this by adding a command that clicks on the element that is out of view.
Another way to scroll an element into view is by using the "Execute JavaScript" command and executing code like the following:
function scrollIntoView(element) { element.scrollIntoView(false); element.scrollIntoView(true); }
The element locator for the element should indicate the element you want to scroll into view.
0