How do you scroll to an element in WebdriverIO?
Hi Jaqueline,
You can use the scrollIntoView() method given by the browser object to scroll to an element in WebdriverIO.
For example, use the following code to scroll to an element with a particular ID:
const element = await browser.$('#my-element');
await element.scrollIntoView();