How to scroll page with selenium

后端 未结 4 1955
深忆病人
深忆病人 2021-02-04 12:34

I am using FirefoxDriver webdriver. The page that loads in Firefox window is a large page and I want to scroll that page using selenium.

I want to know how this can be d

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-04 12:55

    Use this code to scroll single page down

    Actions actions = new Actions(driver);
    actions.sendKeys(Keys.BACK_SPACE).perform();
    

提交回复
热议问题