Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Scroll by & Scroll to

rvmseng
rvmseng Posts: 89
edited October 2018 in SOAtest

Dear Parasoft team,

unfortunately "ScrollBy" and "ScrollTo" don't work in Soatest 9.10
would you please help me.

Comments

  • tony
    tony Posts: 25 ✭✭

    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.