Run RemoteWebdriver in C#

System.Environment.SetEnvironmentVariable(“webdriver.ie.driver”, @”C:\\IEDriverServer.exe”);
OpenQA.Selenium.Remote.DesiredCapabilities capabilities2 = new DesiredCapabilities();
capabilities2 = DesiredCapabilities.InternetExplorer();
DriverContext.Driver = new RemoteWebDriver(new Uri(“http://localhost:5555/wd/hub”),capabilities2);
Logger.Log(ReportLogStatus.INFO, “Browser”, “Test Started in Grid IE browser”);

Advertisements

About qainterviews

Software Geek,QA Expert,Blogger
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s