Write a code snippet to launch chrome browser in webdriver.



Write a code snippet to launch chrome browser in webdriver...

Answer / Gajander Kumar

To launch Chrome using WebDriver, you'll need to have the necessary drivers installed. For instance, with Java and Selenium:
```
System.setProperty("webdriver.chrome.driver", "<path-to-chromedriver.exe>");
WebDriver driver = new ChromeDriver();
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

Explain the fundamental difference between xpath and css selector.

1 Answers  


Explain what can cause a selenium ide test to fail?

1 Answers  


What will be the different kinds of locators in selenium?

1 Answers  


Explain the difference between confirming and verifying commands?

1 Answers  


What are the different ways of locating a web element in selenium?

1 Answers  


Explain xpath absolute and xpath attributes.

1 Answers  


What is pom (page object model)? What are its advantages?

1 Answers  


How is testng better than junit?

1 Answers  


How do you get the attribute of the web element?

1 Answers  


What are the operating systems supported by selenium webdriver?

1 Answers  


How you can insert a start point in selenium ide?

1 Answers  


What is a data driven framework?

1 Answers  


Categories