ExecuteAutomation

Working with Different browsers in Selenium WebDriver

Selenium WebDriver supports different types of browsers by using its native as well as third party web drivers. Firefox browser is natively supported in Selenium Web driver, but for all other browsers, third party web driver are available for Selenium.

Selenium Supported browsers

Selenium supports different types of browsers, such as
  1. Firefox
  2. Chrome
  3. IE
  4. Safari
  5. Opera etc.
Here are the code snippets for Firefox, Chrome and IE Firefox
System.setProperty("webdriver.firefox.bin","F:\\Program Files   (x86)\\Firefox\\Firefox.exe");
WebDriver driver = new FirefoxDriver();
driver.navigate().to("https://www.google.com");
Chrome
System.setProperty("webdriver.chrome.driver","G:\\Lib\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.navigate().to("https://www.google.com");
IE
System.setProperty("webdriver.ie.driver","G:\\Lib\\internetexplorerdriver.exe");
WebDriver driver = new InternetExplorerDriver();
driver.navigate().to("https://www.google.com");
Checkout the complete video from here Please leave your comments and thanks for watching and reading the post !!! Thanks, Karthik KK