How to run webdriver tests in Selenium Grid linux and firefox -
how run webdriver tests in selenium grid linux , firefox. after setting selenium grid , registering node hub when try run below code throws class not found error, thoughts.
url server = new url("http://127.0.0.1:4444/wd/hub"); desiredcapabilities capabilities = new desiredcapabilities(); capabilities.setbrowsername("firefox"); system.out.println("connecting " + server); remotewebdriver driver = new remotewebdriver(server, capabilities); driver.get("http://www.google.com"); driver.quit();
satish, check error in stack trace. says
caused by: java.lang.classnotfoundexception: com.app.tests.remotetest
this not selenium exception. class file remotetest not in classpath.you need set in classpath.
Comments
Post a Comment