Chuchoo Chuchoo - 1 year ago 118
Java Question

PhantomJSDriverService not recognized by eclipse

I am trying to utilize phantoJS to run my selenium test in a headless mode. For that I am doing following,

DesiredCapabilities caps = new DesiredCapabilities();

For some reason PhantomJSDriverService is underlined as an error in eclipse. I am not able to call PHANTOMJS_EXECUTABLE_PATH_PROPERTY using dot notation from PhantomJSDriverService.

What might I be doing wrong? Will explain more if it doesn't make sense.

Answer Source

You need to have phantomjsdriver in your build path. Get the latest version...

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download