QTP无法录制下拉菜单的解决方法
上一篇 /
下一篇 2016-06-13 15:33:05
/ 个人分类:UFT11.5
修改设置如下:
1,在Record->
web event recording configuration 点击custom settings... 展开Web objects,
2,选种webelement,点击event -> add -> onmouseover 。并确定在record栏内,状态是enabled。
3,重新录制你的脚本。
4,录制完成后,执行脚本,若回放失败,是因为脚本只录制了鼠标的onmouseover 事件,却没有录制click事件,所以脚本录制完后要手动添加click事件
'Browser("Browser").Page("平台").WebElement("类型1").Click
Browser("Browser").Page("平台").WebElement("类型2").Click
Browser("Browser").Page("平台").WebElement("使用").Click
'Browser("Browser").Page("平台").WebElement("停用").Click
收藏
举报
TAG: