应该是由于鼠标焦点没有定位到相应元素
driver.find_element_by_xpath('//input[@type="password"]').click()
driver.find_element_by_xpath('//input[@type="password"]').clear()
driver.find_element_by_xpath('//input[@type="password"]').send_keys(newpass)
可以先执行 click定位到相应元素
应该是由于鼠标焦点没有定位到相应元素
driver.find_element_by_xpath('//input[@type="password"]').click()
driver.find_element_by_xpath('//input[@type="password"]').clear()
driver.find_element_by_xpath('//input[@type="password"]').send_keys(newpass)
可以先执行 click定位到相应元素
转载于:https://www.cnblogs.com/xqnq2007/p/7942332.html