Click here to Skip to main content
15,881,669 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:

C#
Given is my code example 

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

              baseURL = "http://www.ntrustinfotech.com/&quot";
              nodeURL = "http://192.168.11.60:4444/wd/hub&quot";

           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);
Posted

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