简体   繁体   English

在QTP中将对象添加到对象存储库时,它没有获得正确的对象类,为什么?

[英]While adding Objects to object repository in QTP, it does not get correct object class, why?

In order to test the Login functionality of a web application using QTP, I try to add objects (username, password and login button) to object repository with application opened in IE. 为了测试使用QTP的Web应用程序的登录功能,我尝试使用在IE中打开的应用程序将对象(用户名,密码和登录按钮)添加到对象存储库中。 While i click on username and Password objects to add, it should get them as WebEdit class objects but somehow QTP gets another object name as WebElement class. 当我单击用户名和密码对象进行添加时,它应该将它们作为WebEdit类对象获取,但是以某种方式QTP将另一个对象名称作为WebElement类获取。 I am sure that i click on the correct place on page. 我确定我单击页面上的正确位置。 I could not figure out where the problem is? 我不知道问题出在哪里?

http://www.learnqtp.com/uft-object-identification-tips/ http://www.learnqtp.com/uft-object-identification-tips/

Zoom level of Application page in IE was not appropriate.That's why QTP did not sense correct object. IE中的“应用程序”页面的缩放级别不合适,这就是QTP无法感知正确对象的原因。 Found the issue and that was very simple thing. 找到了问题,那很简单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM