Posts Tagged: "selenium webdriver"

Tools for web element locators

https://addons.mozilla.org/en-US/firefox/addon/element-locator-for-webdriv/ https://addons.mozilla.org/en-us/firefox/addon/firepath/ https://saucelabs.com/builder http://www.saucelabs.com/addons/selenium-builder-latest.xpi

automation testing using phantom js and selenium webdriver with screenshot

– Download latest version of selenium, I am using 2.45.0 – Download latest version of PhantomJs, I am using 2.0- windows, extract to a safe path. Use below code to automate with phantomjs (Headless browser) import java.io.File; import java.io.IOException; import org.apache.commons.io.FileUtils; import org.junit.Test; import org.openqa.selenium.OutputType; import org.openqa.selenium.phantomjs.PhantomJSDriver; public class Phantom { @Test public void phantomTest() […]

org.openqa.selenium.WebDriverException: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see http://code.google.com/p/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://chromedriver.storage.googleapis.com/index.html

This is due to missing the chrome driver path with the node. So in machine A Run hub java -jar lib/selenium-server-standalone-2.44.0.jar -role hub In machine B register node with parameter -Dwebdriver.chrome.driver so the command should be something like this. C:\Users\Admin\Downloads>java -jar selenium-server-standalone-2.44.0.jar -role w ebdriver -hub http://A-MachineIP:StandaloneRunningPort/grid/register -Dwebdriver.chrome.driver=Path of downloaded binary in B machine. C:\Users\Admin\Downloads>java […]