Protractor: Scroll down

后端 未结 9 477
有刺的猬
有刺的猬 2020-11-30 04:59

I have an button on my page that is visible when the user scrolls down. Because of this, protractor tests give me an error:

UnknownError: unknown erro

9条回答
  •  孤街浪徒
    2020-11-30 05:24

    If you are looking just to navigate to the top or bottom of a long page you could simply use the 'HOME' key to go too the top, or 'END' key to go to the bottom.

    e.g:

    browser.actions().sendKeys(protractor.Key.HOME).perform();
    

    or

    browser.actions().sendKeys(protractor.Key.END).perform();
    

提交回复
热议问题