Protractor: Scroll down

后端 未结 9 425
有刺的猬
有刺的猬 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:30

    I found an easier way. If you want to scroll to an element you can use

        browser.actions().mouseMove(element).perform();
    

    After that the browser will be focusing the element.

提交回复
热议问题