Untitled

Anonymous
plain_text
11/16/2023 2:53 AM
636 B
20
Indexable
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()
Editor is loading...
Leave a Comment