How To Launch Chrome Browser in Selenium Webdriver using java

Launching Chrome Browser in Selenium Web driver with java
Before launching the chrome browser in selenium we have to download and set some required setup to go further ..

Step-1 first Download the latest "Chromedriver.exe" from the official website .and save it to the your location.

Step-2 Set the property 

System.setProperty(“webdriver.chrome.driver”, “chromeDriver.exe path”);


Example- 

System.setProperty("webdriver.chrome.driver", "/lib/chromeDriver/chromedriver.exe");

Selenium code to launch chrome browser 
To launch the chrome browser by using selenium web driver follow the below code

Syntax:

import org.openqa.selenium.WebDriver; 
import org.openqa.selenium.chrome.ChromeDriver;

public class TestChrome
 {
public static void main(String[] args)
 {
System.setProperty("webdriver.chrome.driver", "D:/Sandeep/Soft/chromedriver.exe");
WebDriver driver=new ChromeDriver();
driver.get("http://www.qaacharya.in"); 
driver.manage().window().maximize();
driver.quit();
}
}

Hope !!! The above code for "Launching chrome browser in Selenium using webdriver" helpful for you..
Team 
QA acharya

Tags: Launching Chrome driver in selenium using webdriver , how to launch chrome driver in selenium , How To Launch Chrome driver in selenium using java , 

Related Post:
How To Launch Chrome Browser in Selenium Webdriver