How do I launch the browser using webdriver?



How do I launch the browser using webdriver?..

Answer / Anmol Kumar

To launch a browser using WebDriver, you can use methods like `Firefox()` for Firefox, `Chrome()` for Chrome, and so on. Here's an example for launching Firefox:

```python
from selenium import webdriver

driver = webdriver.Firefox()
driver.get('http://www.example.com')
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

How to export the tests from selenium ide to selenium rc in different languages?

1 Answers  


Explain the fundamental difference between xpath and css selector.

1 Answers  


What are desiredcapabilities in selenium webdriver?

1 Answers  


What is framework and what are the frameworks available in rc?

1 Answers  


What is a hub in selenium grid?

1 Answers  


Disadvantages of Hybrid Framework?

1 Answers   L&T,


How does one store the current url using selenium 2.0?

1 Answers  


Tell me what kind of mouse actions can be performed in selenium?

1 Answers  


How can you find if an element in displayed on the screen?

1 Answers  


How can we deal with web-based pop-up?

1 Answers  


What is the wait? How many types of waits in selenium?

1 Answers  


What is soft assertion in selenium? How can you mark a test case as failed by using soft assertion?

1 Answers  


Categories