Webdriver
To use the webdriver library in your test, there's no need to install it via npm. Simply importing it will suffice.
/* LIBRARIES
*************/
const { sente } = require('#libraries');
const { webdriver } = sente;
However, sente already provides you with a ready-to-use driver. There's no need to create an additional driver. You can use it with the driver at any point in your test flow. For instance, to use navigation on a page:
//Back
await driver.navigate().back();
For detailed information, see: https://www.selenium.dev/documentation/webdriver
Last updated