forward83 发表于 2008-12-16 11:25:01

Robot录制的HTML,不能回放

刚开始接触Robot,请教各位大侠。先谢过了。

   代码很简单,只是想用google的网页来测试一下。发现到Browser NewPage时会出现一个warning。
说“New page not detected in browser”. 接着下面的HTMLLink Click就会fail,说“Unable to find the object”.
   我用的是IE7.

    StartBrowser "http://www.google.com", "WindowTag=WEBBrowser"
    Window SetContext, "WindowTag=WEBBrowser", ""
    Window WMaximize, "", ""
    Browser NewPage,"HTMLTitle=Google;Index=0",""
    HTMLLink Click, "HTMLText=Images", ""
    Browser NewPage,"HTMLTitle=Google Image Search;Index=0",""
    HTMLLink Click, "HTMLText=News", ""
    Window CloseWin, "", ""

forward83 发表于 2008-12-16 15:56:09

没人帮忙吗?:( :(

bb64844866 发表于 2008-12-17 10:38:38

你的Robot是V7.0.0.0版本吗?

如果是的话肯定是不支持IE7的,IBM网站上更新的最新版(好像是V7.0.0.1,具体忘了,我用的也是V7.0.0.0)是可以支持IE7的,建议你使用Robot时还是用IE6为好。
另外那句 Browser NewPage,"HTMLTitle=Google;Index=0",""
可以注释掉的,你单步调式的时候可以试一试,造成你回放失败的原因应该就是IE7的问题。
IBM官网消息如下:
IBM Rational Robot 7.0.0.1 IFIX01

Downloadable files

Abstract
This document describes how to download and install this interim fix for IBM® Rational® Robot, Version 7.0.0.1


Download Description
IBM® Rational® Robot 7.0.0.1 IFIX01contains enhanced functionality as well as fixes to problems.
This release includes the following new features:

Support for testing HTML applications on Microsoft ® Internet Explorer 7.0 (GUI testing).
Suppport for testing PowerBuilder 10.5

[ 本帖最后由 bb64844866 于 2008-12-17 17:17 编辑 ]
页: [1]
查看完整版本: Robot录制的HTML,不能回放