Protractor: Scroll down

0
0

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 error: Element is not clickable at point (94, 188).

I tried using:

browser.executeScript('window.scrollTo(0,document.body.scrollHeight)');

which worked when I tested it in protractors elementexplorer.js but in my regular tests it doesn’t do anything. Any other way around this?

  • You must to post comments
0
0

you need to wait for the promise to be solved. the following example comes from an open issue

browser.executeScript('window.scrollTo(0,0);').then(function () {
page
.saveButton.click();
})
  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Website