selenium运营异常报错,咋回事?
如题,详细代码如下:运行代码:
from selenium import webdriver
from selenium.webdriver import ActionChains
driver=webdriver.Ie()
driver.get("http://10.3.231.64:7001/pension_sec/")
driver.switch_to.frame('fraInterface')
driver.implicitly_wait(10)
user=driver.find_element_by_id("UserCode2")
ActionChains(driver).click_and_hold(user).send_keys_to_element(user,"001").perform()
-----运行异常结果:Message: Currently focused window has been closed.求教!
应该是fraInterface这个界面关闭了啊 聚焦的窗口被关闭了 窗口关闭
页:
[1]