in Testing by
Q:
How do I launch the browser using WebDriver?

3 Answers

0 votes
by
The following syntax can be used to launch the Browser:

WebDriver driver = new FirefoxDriver();

WebDriver driver = new ChromeDriver();

WebDriver driver = new InternetExplorerDriver();
0 votes
by
The following syntax can be used to launch Browser:

WebDriver driver = new FirefoxDriver();

WebDriver driver = new ChromeDriver();

Web Driver driver = new Internet Explorer Driver();
0 votes
by

For Firefox:

WebDriver driver = new FirefoxDriver();

For Chrome:

WebDriver driver = new ChromeDriver();

For Internet Explorer (IE):

WebDriver driver = new InternetExplorerDriver();

Related questions

0 votes
asked Dec 9, 2019 in Testing by Robindeniel
0 votes
asked Jan 30, 2020 in Selenium by Deepanshu Burreja
...