QTP中micclass的使用
在QTP中敲脚本SystemUtil.Run "www.51testing.com","iexplore.exe"
Browser("micClass:= Browser").Navigate "bbs.51testing.com"
Browser("micClass:=Browser").Page("micClass := Page").Sync: wait 1
运行后报错
General run error:
Line(2):“Browser("micClass:= Browser").Navigate "bbs.51testing.com"
”
不明白为什么?有人能解答下么:dizzy: Line(2):“Browser("micClass:= Browser") 多了个空格
另外第一行SystemUtil.Run "www.51testing.com","iexplore.exe" 两个参数写反了 :victory: :L回去再试下 :L回去再试下 SystemUtil.Run "iexplore.exe","www.51testing.com"
Browser("micClass:=Browser").Navigate "bbs.51testing.com"
Browser("micClass:=Browser").Page("micClass:=Page").Sync:wait 1
ok了 确实是空格的问题 woddebbmm 发表于 2012-4-24 23:22
SystemUtil.Run "iexplore.exe","www.51testing.com"
Browser("micClass:=Browser").Navigate "bbs.51test ...
systemUtil.Run "www.51testing.com"
Browser("micClass:=Browser").Navigate "bbs.51testing.com"
Browser("micClass:=Browser").Page("micClass:=Page").Sync:wait 1
我跟你写的一样,但是还是报错
Line(2):“Browser("micClass:= Browser").Navigate "bbs.51testing.com"
为什么呢?
页:
[1]