How to get the scroll into view to work in Chrome. Using selenium web driver

Welcome Forums General PowerShell Q&A How to get the scroll into view to work in Chrome. Using selenium web driver

  • This topic has 2 replies, 2 voices, and was last updated 1 month ago by
    Hil
    Participant
    .
Viewing 2 reply threads
  • Author
    Posts
    • #251912
      Hil
      Participant
      Topics: 31
      Replies: 41
      Points: 215
      Rank: Participant

      I need to scroll down the page to the NEXT button. Only when the NEXT button is visible it can be clicked on. So I need to get the “scroll into view” to work.

       

    • #252152
      Participant
      Topics: 15
      Replies: 1776
      Points: 3,218
      Helping Hand
      Rank: Community Hero

      The only thing I see in the code is that ‘Continue’ is spelled incorrectly.

      Outside of that, you many need to find a forum specifically for Selenium as asking about usage is a bit to broad of an audience.

    • #252161
      Hil
      Participant
      Topics: 31
      Replies: 41
      Points: 215
      Rank: Participant

      The only thing I see in the code is that ‘Continue’ is spelled incorrectly.

      Outside of that, you many need to find a forum specifically for Selenium as asking about usage is a bit to broad of an audience.

      Yes sorry for the CONTINUE. This code is part of a larger code, so I had to put in just the lines that were relevant and messed up the continue. That was not the cause of concern through. It was the ScrollIntoView() that was the problem.

      I did go through other sites and I did find scripts in other languages for the same issue, but I was not able to convert them to powershell  or get the necessary component to run correctly … Like:

      https://sqa.stackexchange.com/questions/9655/not-able-to-scroll-down-page-using-selenium-webdriver

      https://intellipaat.com/community/16503/how-to-scroll-to-element-with-selenium-webdriver-using-c

       

Viewing 2 reply threads
  • You must be logged in to reply to this topic.