power_settings_new

phantomjs 262 in error

by
asked
0 votes
105 views
I am executing tests using PhantomJS. I am getting below error on console.

 

  :262 in error

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

answered by (171 points)
0 votes

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!

add
...