I have the selenium-server-standalone.jar running on my local machine, and the tests I want to run compiled on my remote machine, but I have no idea how I make the tests connect to the machine that will run the browser. Any help appreciated.
Update: On my local machine (the one I will be running the browser on) I ran
java -jar selenium-server-standalone-2.25.0.jar -mode hub
on my remote machine (that I will run the tests from) I ran
java -jar selenium-server-standalone-2.25.0.jar -role webDriver -hub http://**My ip*:4444
my code contains the following:
@Before
public void setUp() throws Exception {
DesiredCapabilities capability = DesiredCapabilities.firefox();
driver = new RemoteWebDriver(new URL("http://**My ip**:4444/wd/hub"),
capability);
baseUrl = "http://phy05:8080";
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);
driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);
driver.manage().window().setSize(new Dimension(1920, 1080));
I am using Linux and my tests are written in Java