Guest User

Untitled

a guest
Apr 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. from selenium import webdriver
  2. from selenium.webdriver.common.keys import Keys
  3.  
  4. driver = webdriver.Chrome()
  5. driver.get("https://google.ru/")
  6.  
  7. FILE_NAME_PROFILE = r'C:UserspcAppDataLocalGoogleChromeUser Data'
  8.  
  9. from selenium import webdriver
  10. options = webdriver.ChromeOptions()
  11. options.add_argument("user-data-dir=" + FILE_NAME_PROFILE)
  12.  
  13. w = webdriver.Chrome(executable_path="C:\Users\chromedriver.exe", chrome_options=options)
Add Comment
Please, Sign In to add comment