Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from selenium import webdriver
- from selenium.webdriver.chrome.options import Options
- import time
- options = Options()
- options.add_extension('metamask-chrome-9.8.4.crx')
- driver = webdriver.Chrome('./chromedriver', options = options)
- driver.get('https://google.com')
- time.sleep(2)
- get_started_button = driver.find_element_by_xpath("//*[@id=\"app-content\"]/div/div[3]/div/div/div/button")
- get_started_button.click()
- input('Press [ENTER] to close browsers...')
- driver.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement