Search code examples
c#seleniumwebdriverselenium-grid

What is my next step after Selenium grid hub & nodes have been set up?


I have a Selenium Grid hub version 2.22.0 set up with 5 nodes running. Here the list of them:

  • 1 Local node running windows 7(my machine)
  • 1 Virtual machine running Windows XP
  • 1 Virtual machine running Windows Vista
  • 2 Virtual machines running Windows 7

I want to be able to send jobs to those machines that will load a specific browser(s) and use webdriver to drive commands through them.

I need to do It using Visual Studio with C# language. (Also, I booted the grid and all of the nodes using Java standalone servers, does that mean my webdriver will need to be written in Java also?)

If you know of any current tutorials using webdriver and grid that would be great. (all the tutorials I can find use selenium grid version 1)


Solution

  • Those are Java specific commands are to initiate Grid and register the Nodes. It has nothing to do with Scripts.

    You can write scripts in your preferred Language (C#,Java..etc).

    Here are some pages which gives more information on how to write Selenium code in C# and how to use Grid.

    http://www.theautomatedtester.co.uk/tutorials/selenium/selenium_two_csharp_nunit.htm http://code.google.com/p/selenium/wiki/Grid2

    I hope this helps you ...All the best :)