实在是不知道为啥动不了,求解释
错误如下:Traceback (most recent call last):
File "D:\PycharmProjects\pythonProject\venv\pythonTes.py", line 5, in
driver.find_element_by_id('kw').send.get('guge')
AttributeError: 'NoneType' object has no attribute 'send'
附上代码:
from selenium import webdriver driver = webdriver.Chrome() driver.get('http://www.baidu.com') driver.find_element_by_id('kw').send.get('hello word')