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

0 like 0 dislike
254 views
by
I am executing tests using PhantomJS. I am getting below error on console.

 

  :262 in error

1 Answer

0 like 0 dislike
by The go-to Tester (181 points)

This is the known issue. You can track issue at

https://github.com/detro/ghostdriver/issues/394

There is a workaround available.

Download source from phantomjs http://phantomjs.org/build.html and edit hub_register.js in the src/ghostdriver
comment out lines as shown below: 

 //var ghostdriver = ghostdriver || {};

    return {
        capabilities: [{
            browserName: "phantomjs",
            version: version,
            //platform: ghostdriver.system.os.name + '-' + ghostdriver.system.os.version + '-' + ghostdriver.system.os.architecture,
            maxInstances: 1,
            seleniumProtocol: "WebDriver"

compile and everything works!


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!

...