QTP不能识别“upload”的解决办法(转)

上一篇 / 下一篇  2010-04-29 09:50:07 / 个人分类:QTP

“我在使用QTP的时候,由于某些原因,QTP不能识别“upload”这个按钮。                               你会发现web按钮大多和“input type=submit”这个对象有关,加入你查看了browse这个按钮的源代码,你会发现“input type=file”这个对象。

 


参考微软官方的帮组文档,“input type=file”对象创建一个文件上传对象的时候同时伴随了一个文本区和一个browse按钮。注意下“和”,这说明“input type=file”创建的文本区和browse按钮时被认为是一个object的。QTp不会识别部分对象
我们如何才能解决这个问题呢?
查看“Web Event Recording Configuration”的页面:http://www.learnqtp.com/how-to-record-mouse-right-click-web-event-recording-configuration/
具体解决方式如下:

1 Object Spy on the text box/ browse button object reveals that it is a WebFile type Object.

 

2 Using Tools > Web Event Recording Configuration, go to WebFile (under Web Objects tree)

. Addonclickevent.

 

3 Set theonclickevent settings to Always. Click ‘OK’.

 

3

3

2

2

1

1

4

4

TAG:

 

评分:0

我来说两句

我的栏目

日历

« 2024-05-10  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 2939
  • 日志数: 3
  • 建立时间: 2007-10-23
  • 更新时间: 2010-04-29

RSS订阅

Open Toolbar