Question

I wrote some tests (webriver, testng), but since running them takes kinda much time and i can't use my PC when webdriver is working. Now i'm trying to run them on different machine using Remote Desktop Connection. I copied my tests to the other machine, compiled them and try to run, but webdriver can't find any element of tested page (even by tagName "body"). Is it possible to do it the way i'm trying? Or i have to use grid for that? i'm using selenium server standalone 2.33 (sorry for my english and lacks of knowlage but i'm student new to the webdriver stuff :) )

Was it helpful?

Solution

What you want, is a Selenium Grid.

There are at least 2 separate entities that you need. You need...

  1. A Grid server
  2. A Node

In your case, what you will do, is for your RDP machine that you have access to, you'll want to run your selenium-server-standalone.jar with the -role node -hub http://my.hub.ip arguments attached.

For the hub (should be either your computer, or another dedicated server) is run the selenium-server-standalone.jar with the -role hub arguments attached.

Then what you'll do, is when you are on YOUR computer, write your test, you can fire tests at the grid, which will fire the tests, in turn, at any available node. In your case, your RDP.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top