标签:comm 解决方案 focus chain .com rom key imp bdr
If you enconter error "cannot focus element" when using Selenium+Python in Chrome to input value, you can use below code instead:
from selenium.webdriver.common.action_chains import ActionChains
element1 = driver.find_element_by_id("inputCtrl0")
ActionChains(driver).click(element1).send_keys("111").perform()
标签:comm 解决方案 focus chain .com rom key imp bdr
原文地址:https://www.cnblogs.com/AmyHu/p/9067066.html