in Testing by
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 6, 2019 in Testing by SakshiSharma
0 votes
asked Mar 28, 2021 in Testing by rajeshsharma
0 votes
asked Dec 4, 2020 in Testing by sharadyadav1986
...