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