const {Builder, By, Key, util} = require("selenium-webdriver/Firefox");
async function example(){
let driver = await new Builder().forBrowser('Firefox').build();
await driver.get("https://www.google.com");
await driver.findElement(By.name("q")).sendKeys("Selenium", Key.RETURN);
Hello, I am constantly getting these errors, although I added the webdriver path in the system and I cant execute the test. Has anyone experienced something like that?
(node:15844) UnhandledPromiseRejectionWarning: Error: Do not know how to build driver: Firefox
(node:4764) UnhandledPromiseRejectionWarning: TypeError: Builder is not a constructor