Click here to Skip to main content
15,112,662 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi, i am new learner for selenium grid , i stack problem how to execute testcase in different machine at same time using selenium grid in C#.

how to parallaly execution different machine at same time.any one know let me know how to solve this problem.

What I have tried:

Given is my code example 

<pre lang="C#">IWebDriver driver;
           string nodeURL, baseURL,nodIPaddress;

              baseURL = "";
              nodeURL = "";

           DesiredCapabilities objCap = DesiredCapabilities.Firefox();

           objCap.SetCapability(CapabilityType.AcceptSslCertificates, true);
           objCap.SetCapability(CapabilityType.HasNativeEvents, false);
           objCap.SetCapability(CapabilityType.Platform, new Platform(PlatformType.Windows));
           objCap.IsJavaScriptEnabled = true;

           //IP address for the NODE system
            Uri nodeIPaddress = new Uri(nodeURL);
             // Remote driver access
            driver = new RemoteWebDriver(nodeIPaddress, objCap);

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900