chromeドライバをWindowsでインストールを行うにはどちらhttps://chromedriver.chromium.org/downloadsを選択すればよいのでしょうか。
python3
import time from selenium import webdriver driver = webdriver.Chrome(r"C:\Users\AKFU\Downloads\chromedriver_win32 test\chromedriver.exe" ) # Optional argument, if not specified will search path. driver.get('http://www.google.com/'); time.sleep(5) # Let the user actually see something! search_box = driver.find_element_by_name('q') search_box.send_keys('ChromeDriver') search_box.submit() time.sleep(5) # Let the user actually see something! driver.quit()
まだ回答がついていません
会員登録して回答してみよう