Untitled
unknown
plain_text
2 years ago
475 B
5
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