I am utilizing Selenium webdriver with javascript and node.js
During a certain step in my test, I need to automate clicking on a button positioned at the top of the page.
However, due to some pre-treatment, the page automatically scrolls to the bottom, causing the button at the top to disappear. This leads to the following error:
Uncaught WebDriverError: unknown error: Element <li>...</li> is not clickable at point (707, 10). Other element would receive the click: <li class="menumain crm-Campaigns" tabindex="11">...</li>
After some research, I discovered that I should scroll to the top to make the button reappear.
How can I achieve this??