模块调用出错:调用的目标发生了异常。 can not get active ie tab

qq_21717 2019-6-6 2274

内容_模块调用出错:调用的目标发生了异常。 can not get active ie tab


dim hWeb = ""
dim sRet = ""
Delay(1000)
hWeb = WebBrowser.BindBrowser("ie",10000,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":200})
Delay(200)
#icon("@res:o3r54sdd-7rs6-pqi9-ketn-l4bjnb4b1cmj.png")
UiElement.SetSelect({"html":{"attrMap":{"id":"ctl00_mainContent_ddlProvince","tag":"SELECT"},"index":0,"tagName":"SELECT","title":"","url":"http://www.vrbrothers.com/cn/wqm/demo/pages/Demo-ComplexForm.aspx"},"wnd":[{"app":"iexplore","cls":"IEFrame","title":"*"},{"cls":"Internet Explorer_Server"}]},["河北"],"text",{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":200})
Delay(1000)
sRet = WebBrowser.RunJS(hWeb,"function(){\n$(\"#ctl00_mainContent_ddlProvince\").change()\n}",true,{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":200})
#icon("@res:lp697u61-v0h3-nkb4-6oda-132hinlvbrug.png")
UiElement.SetSelect({"html":{"attrMap":{"id":"ctl00_mainContent_ddlCity","tag":"SELECT"},"index":0,"tagName":"SELECT","title":"","url":"http://www.vrbrothers.com/cn/wqm/demo/pages/Demo-ComplexForm.aspx"},"wnd":[{"app":"iexplore","cls":"IEFrame","title":"*"},{"cls":"Internet Explorer_Server"}]},["衡水"],"text",{"bContinueOnError":false,"iDelayAfter":300,"iDelayBefore":200})
Delay(1000)

提示错误:

]uibot3768d45212cb88.task,第10行:模块调用出错:调用的目标发生了异常。 can not get active ie tab

这是错误原因是我的电脑装的ie的问题,还是网速有问题,还是我的uibot程序写错了,头疼死了,一会儿能用,一会不能用的。

最新回复 (2)
  • qq_21717 2019-6-6
    2
    卸载,重装,已解决。
  • liu_368409 2021-3-24
    3
    楼主,是卸载UB重装了吗?还是IE?
返回
发新帖