出错代码:
search_text=driver.find_element_by_id('userpassword')
search_text.send_keys(userpassword)
search_text.submit()
原因:input的名子用到了 name=”submit”,该对象会和submit()产生冲突,将名字修改了即可
出错代码:
search_text=driver.find_element_by_id('userpassword')
search_text.send_keys(userpassword)
search_text.submit()
原因:input的名子用到了 name=”submit”,该对象会和submit()产生冲突,将名字修改了即可