测试积点老人 发表于 2022-1-11 10:42:34

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.求教!

yb389973788 发表于 2022-1-12 09:44:46

应该是fraInterface这个界面关闭了啊

qqq911 发表于 2022-1-12 10:34:02

聚焦的窗口被关闭了

jingzizx 发表于 2022-1-12 17:31:23

窗口关闭
页: [1]
查看完整版本: selenium运营异常报错,咋回事?