Pablo Darde
Pablo Darde

Reputation: 6402

Selenium webdriver opens firefox but doesn't fetch page through Selenium and NodeJS

I'm starting work with selenium along NodeJS and set up a simple config file.

test.config.js

var webdriver = require('selenium-webdriver'),
  By = webdriver.By,
  until = webdriver.until;

var driver = new webdriver.Builder()
  .forBrowser('firefox')
  .build();

driver.get('http://www.yahoo.com');

When I run $ node test.config.js

Selenium open Firefox but doesn't go to yahoo page. In chrome, all works fine.

Below my settings:

Firefox Quantum 63.0.3 64 bits.

Ubuntu 18.04.1 LTS 64 bits.

Geckodriver version 0.11.1

node version: 8.11.3

Firefox open by selenium

enter image description here What could be wrong here?

Upvotes: 1

Views: 512

Answers (1)

undetected Selenium
undetected Selenium

Reputation: 193058

The Geckodriver version 0.11.1 is quite ancient and is incompatible with Firefox Quantum v63.0.3

Solution

Download and install the compatible version of Geckodriver as per the chart the current released version being Geckodriver v0.23.0


GeckoDriver, Selenium and Firefox Browser compatibility chart

supported_platforms_geckodriver

Upvotes: 1

Related Questions