How to launch a browser using selenium webdriver?



How to launch a browser using selenium webdriver?..

Answer / Km. Ranjna Shakya

To launch a browser (like Chrome, Firefox, or Safari) using Selenium WebDriver, you'll first need to create a driver object for the desired browser. Here's an example for launching Chrome in Java:nnWebDriver driver = new ChromeDriver();

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

What are the technical limitations while using selenium rc?

1 Answers  


What is soft assertion in selenium?

1 Answers  


How to retrieve css properties of an element?

1 Answers  


How to check the checkbox or radio button is selected?

1 Answers  


Explain selenium waitfor commands ?

1 Answers  


What is the difference between driver.close() and driver.quit command?

1 Answers  


List the advantages of webdriver over selenium server?

1 Answers  


What are soft assert and hard assert in selenium?

1 Answers  


How to handle a dropdown in selenium webdriver?

1 Answers  


Explain what does @test(invocationcount=?) And @test(threadpoolsize=?) Indicate.

1 Answers  


how to handle staleelementreferenceexception?

1 Answers  


What are the advantages of pom (page object model)?

1 Answers  


Categories