adspace


How do I launch the browser using webdriver?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know how to locate a link using its text in selenium?

983


Have you created any framework?

1035


What’s selenese?

918


what will be the first salary and what will be the hike in the salary?

926


How can you fetch an attribute from an element? How to retrieve typed text from a textbox?

1195