关于图像识别的QTP问题
我有这个图像是 webtable 单元格中的子项目,例如 Brower ->页面->网页表 ->链接->图像。在存储库中添加此图像后,我尝试在描述属性中也添加“文件名”。然后当突出显示它时,发现在页面上找不到它。我只是不明白为什么。有人可以向我解释一下吗?
预先非常感谢
艾伦
I have this image is a childitem in a cell of webtable, like Brower -> Page -> Webtable -> Link -> Image. After added this image in the repository, I try to add "file name" too in the description properties. Then when highlight it, turn out that it cannot be found on the page. I just could not understand why. Could someone please explan this to me?
Many thanks in advance
Allen
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来你有一个序数选择器,它比与新描述匹配的对象集大。
例如,假设描述是
html tag:=img, alt:=""
这匹配了 10 个链接,而您的链接是 #6,因此序数标识符将为 6。现在您添加了文件名,它仅匹配 2 个对象。当 QTP 尝试识别对象时,它会看到有多个匹配项并尝试使用序数。但序数大于匹配的元素数量,因此无法识别该对象。您必须:
我希望我正确地猜到了您的问题。
Sounds like you had an ordinal selector which is bigger than the set of objects that match the new description.
e.g. Say the description was
html tag:=img, alt:=""
this matched 10 links and your link was #6 so the ordinal identifier would be 6. Now you added the filename and it matches only 2 objects. When QTP tries to identify the object it will see there are multiple matches and try to use the ordinal. But the ordinal is bigger than the number of elements matched so the object can not be identified.You must either:
I hope I guessed you problem correctly.