#encoding=utf-8 from selenium import webdriver import time from time import sleep dr = webdriver.Firefox() dr.get("https://www.baidu.com") sleep(2) dr.find_element_by_id("kw").send_keys("selenium") sleep(2) dr.find_element_
Cross origin requests are only supported for HTTP? 参考:https://www.zhihu.com/question/20948649 批处理: start_chrome_with_tmp_userdata.bat @echo off pushd %~dp0 set TMP_USERDATA="%CD%/tmp_userdata" set TMP_URL="%~1" if %TMP_URL%=="&quo