As a beginner in selenium, I have recently set up my environment with the latest versions of selenium web driver 3.4, Node.JS v8.2.0, and the gecko driver. I have also configured my environment variables.
Currently, I am writing my tests using Visual Studio Community Edition.
Below is the code I have written, however, I am encountering an error when trying to execute it in Firefox. Despite having the latest versions, the issue persists. Any assistance on this matter would be highly appreciated.
var webdriver = require('selenium-webdriver'),
By = webdriver.By,
until = webdriver.until;
var driver = new webdriver.Builder()
.forBrowser('firefox')
.build();
driver.get('http://www.google.com/ncr');
driver.findElement(By.name('q')).sendKeys('webdriver');
driver.findElement(By.name('btnG')).click();