Using WebDriverBackedSelenium with
different browser(s) setting contains the .NET bindings for the older,
more procedural Selenium Remote Control (or Selenium RC) API, but implemented
using the newer WebDriver technology. It does not require a running instance of
the Selenium Server.
if (Browser.Equals("IE"))
{
string
ieDriverPath = ConfigurationManager.AppSettings["ieDriverPath"];
var
options = new InternetExplorerOptions
{ IntroduceInstabilityByIgnoringProtectedModeSettings = true };
WebDriver = new InternetExplorerDriver(ieDriverPath,
options);
BackedSelenium = new WebDriverBackedSelenium(WebDriver,
ConfigurationManager.AppSettings["browserUrl"]);
BackedSelenium.Start();
WebDriver.Navigate().GoToUrl(ConfigurationManager.AppSettings["browserUrl"]);
}
if
(Browser.Equals("Firefox"))
{
WebDriver = new FirefoxDriver();
BackedSelenium = new WebDriverBackedSelenium(WebDriver,
ConfigurationManager.AppSettings["browserUrl"]);
BackedSelenium.Start();
WebDriver.Navigate().GoToUrl(ConfigurationManager.AppSettings["browserUrl"]);
}
if
(Browser.Equals("Safari"))
{
WebDriver = new SafariDriver();
BackedSelenium = new WebDriverBackedSelenium(WebDriver,
ConfigurationManager.AppSettings["browserUrl"]);
BackedSelenium.Start();
WebDriver.Navigate().GoToUrl(ConfigurationManager.AppSettings["browserUrl"]);
}
I feel very grateful that I read this. It is very helpful and very informative and I really learned a lot from it.
ReplyDeleteblue prism training in chennai | blue prism training in velachery | blue prism training and placement | best training institute for blue prism | blue prism course fee details | Best Blue Prism Training in Credo Systemz, Chennai | blue prism certification cost | blue prism certification training in chennai | blue prism developer certification cost