Forum Discussion

vgangavarapu198's avatar
vgangavarapu198
Occasional Contributor
10 years ago

How to work on the scroll Bar controls in Browser.

I have dropdown and selected the values in the dropdown. I wanted to see the fiter results are showing correctly by scrolling down the page.

 

How to scroll down the browser.

 

I used the below script.

 

Alias.Borwser.Borwserwindow.Keys "^[END]"--- is not working...

8 Replies

    • AlexKaras's avatar
      AlexKaras
      Champion Level 3

      > scrollIntoView 

      Actually, scrollIntoView works correctly for any browser on Windows OS (verified with IE, FF, Chrome and Safari).

      • Ryan_Moran's avatar
        Ryan_Moran
        Valued Contributor

        While ScrollIntoView will not throw an error, and will scroll the appropriate tab & object into view it will not switch tabs for you.

        You will still need to switch to the appropriate tab to perform other actions on the object.

        To avoid subsequent failures in your tests make sure you are on the correct tab.

    • gvkr1985's avatar
      gvkr1985
      Occasional Contributor

      The action may be performed incorrectly, because the control is not visible. error is showing in the results

      • Ryan_Moran's avatar
        Ryan_Moran
        Valued Contributor

        Is your mapped object actually visible?

         

        Does this work for you on this page?

         

        Sys.Browser("chrome").Page("*community.smartbear.com*").Keys("^[End]")

        What browser are you using?

        Do you have multiple tabs open?