Example : Selenium with Python

Here is a simple example of web browser automation using Selenium webdriver + Chrome broswer to go to Google.com

from selenium import webdriver

# Create a Chrome WebDriver instance
driver = webdriver.Chrome()

# Open Google in the Chrome browser
driver.get("https://www.google.com")

# Close the browser window
driver.quit()
Thanks for reading and happy learning! billy-at-python.sg

Leave a Reply 0

Your email address will not be published. Required fields are marked *