简体   繁体   中英

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. I have already created tests using Firefox driver but I am not able to work with the other browsers.

        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)?

Please advice. Thanks.

I suggest you the below Selenium WebDriver Documentation link.

Selenium WebDriver Documentation Here you can find required details in a section called "Driver specific and Tradeoffs".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM