Sobes.tech
Junior — Middle

Which function in Selenium is responsible for launching the browser and navigating to a specific URL?

sobes.tech AI

Answer from AI

In Selenium, to launch a browser, you create an instance of the corresponding driver (e.g., webdriver.Chrome()), and then use its get() method to navigate to a specific URL.

Example in Python:

from selenium import webdriver

# Launch Chrome browser
driver = webdriver.Chrome()

# Navigate to the URL
driver.get('https://example.com')

The get() method opens the specified page in the launched browser.

Which function in Selenium is responsible for… - sobes.tech