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

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -