Chuchoo Chuchoo - 6 months ago 48
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.


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