[英]How to deal with different browsers (Safari, Chrome, Internet explorer and opera) in selenium webdriver. What kind of libraries needs to be installed?
I am new to selenium webdriver. 我是Selenium Webdriver的新手。 I have already created tests using Firefox driver but I am not able to work with the other browsers. 我已经使用Firefox驱动程序创建了测试,但是无法与其他浏览器一起使用。
IWebDriver driver = new FirefoxDriver();
this.driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(10));
this.driver.Navigate().GoToUrl("http://example.com");
this.driver.Manage().Window.Maximize();
How to create the instance for other browseers. 如何为其他浏览器创建实例。 Resources I am using (.net, Nuget Package manager, c#, selenium webdriver)? 我正在使用的资源(.net,Nuget程序包管理器,C#,Selenium WebDriver)?
Please advice. 请指教。 Thanks. 谢谢。
I suggest you the below Selenium WebDriver Documentation link. 我建议您在下面的Selenium WebDriver文档链接中。
Selenium WebDriver Documentation Here you can find required details in a section called "Driver specific and Tradeoffs". Selenium WebDriver文档在这里,您可以在“特定于驱动程序和权衡”一节中找到所需的详细信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.