java - PhantomJSDriverService not recognized by eclipse -


i trying utilize phantojs run selenium test in headless mode. doing following,

desiredcapabilities caps = new desiredcapabilities();             caps.setjavascriptenabled(true);                                     caps.setcapability(phantomjsdriverservice.phantomjs_executable_path_property,                     "path/to/your/phantomjs.exe"                 ); 

for reason phantomjsdriverservice underlined error in eclipse. not able call phantomjs_executable_path_property using dot notation phantomjsdriverservice.

what might doing wrong? explain more if doesn't make sense.

you need have phantomjsdriver in build path. latest version...


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -