Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
475 B
1
Indexable
Never
from selenium import webdriver
import time

# Set the path to the chromedriver executable
chromedriver_path = '/path/to/chromedriver'  # replace with your path

# Create an instance of Chrome WebDriver
browser = webdriver.Chrome(chromedriver_path)

# Navigate to the desired website
browser.get('http://www.example.com')

# Wait for 5 seconds
time.sleep(5)

# Refresh the browser
browser.refresh()

# Wait for 5 more seconds
time.sleep(5)

# Close the browser
browser.quit()
Leave a Comment