Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
1.9k views
by The go-to Tester (218 points)
retagged by
I am running automated ests using Selenium Webdriver. I am using npm package and written in node.js. My OS is Mac EI Captain and selenium version is 3.0.1. I am getting the following error-:

Uncaught Error: server terminated early with status 126
by The go-to Tester (181 points)
can you paste command to run? Are you using ProtractorJS?
by The go-to Tester (218 points)
I am using node.js. I have the following code-:

var selenium = require('selenium-webdriver')
var By = selenium.By
var chrome = require('selenium-webdriver/chrome')

var path = require('chromedriver').path
var service = new chrome.ServiceBuilder(path).build()
chrome.setDefaultService(service)

before(function () {
    this.driver = new selenium.Builder()
        .withCapabilities(selenium.Capabilities.chrome())
        .build()
    console.log(this.driver.getCapabilities())
})

1 Answer

0 like 0 dislike
by
selected by
 
Best answer
Can you check if you have proper version of ChromeDriver installed? We usually face this issue when you use 32-bit Chromedriver on 64-bit system. Change your Chromedriver to 64-bit and it should be good.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...