#encoding:utf-8 from selenium import webdriver driver = webdriver.Chrome() driver.get("https://www.baidu.com") driver.find_element_by_id('kw').send_keys('selenium2') driver.find_element_by_id('su').click() driver.quit()
报错信息:
Traceback (most recent call last): File "C:/Python/Python35/Lib/site-packages/selenium/test.py", line 5, in <module> driver = webdriver.Chrome() File "C:\Python\Python35\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 62, in __init__ self.service.start() File "C:\Python\Python35\lib\site-packages\selenium\webdriver\common\service.py", line 74, in start stdout=self.log_file, stderr=self.log_file) File "C:\Python\Python35\Lib\subprocess.py", line 947, in __init__ restore_signals, start_new_session) File "C:\Python\Python35\Lib\subprocess.py", line 1224, in _execute_child startupinfo) OSError: [WinError 740] 请求的操作需要提升。
习惯受伤
相关分类