在uft中对子浏览器执行操作

时间:2015-09-22 13:14:11

标签: vbscript qtp hp-uft

我已经测试了许多方法来实现这一目标,但没有运气。首先,感谢您重振我的帖子和提供你的建议。

我正在编写一个脚本,点击IE 8上的添加图像(+)。打开一个包含一些Web元素的新浏览器。在查询对象间谍时,有趣的是,子浏览器具有奇怪的冗长标题作为URL,该页面具有空白标题,如下所示

`"Class Name:=Browser",
"abs_x:=203",
"abs_y:=95",
"application version:=internet explorer 8",
"hasmenubar:=False",
"hasstatusbar:=True",
"hastoolbar:=True",
"height:=626",
"hwnd:=8651952",
"name:=",
"number of tabs:=1",
"opentitle:=",
"openurl:=http://10\.207\.182\.123:8888/index\.php\?module=Products&action=Popup&html=Popup_picker&form=HelpDeskEditView&popuptype=specific&fromlink=",
"title:=http://10\.207\.182\.123:8888/index\.php\?module=Products&action=Popup&html=Popup_picker&form=HelpDeskEditView&popuptype=specific&fromlink=",
"top_level_hwnd:=5440308",
"version:=internet explorer 8",
"width:=644"`

`"Class Name:=Page",
"abs_x:=203",
"abs_y:=95",
"height:=606",
"hwnd:=4654664",
"name:=test",
"text:=",
"title:=",
"url:=http://10\.207\.182\.123:8888/index\.php\?module=Products&action=Popup&html=Popup_picker&form=HelpDeskEditView&popuptype=specific&fromlink=",
"width:=644"`

我的脚本涉及处理子浏览器,搜索值和&从子网页中选择它。虽然我使用if Browser("creationtime=1").exist then statements ...end if时。脚本评估条件但无法执行任何操作。我认为脚本未激活子浏览器。我试图同步子浏览器`浏览器(“creationtime = 1”)。同步。这也失败了。能否请您建议是否有其他方法可以使用它?

0 个答案:

没有答案