如何动态等待自动化中的元素 [英] How to Wait Dynamically For an Element in Automation

查看:170
本文介绍了如何动态等待自动化中的元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想知道我们如何等待一个物体直到它可见。



案例-1当对象不可见时



ForVisible和For Exists属性在我的工具中不起作用。



问题:我们指定的时间可以说10秒。工具立即在对象不可见时抛出异常。它的剂量不等于10秒,即如果物体不可见,我们指定的时间是没用的。



工具 - > Telerik Test Studio

脚本语言 - > C#



任何通过C#解决此问题的建议..?



问候,

Ayush Jain

Hi,

I wanted to Know How we can wait For an object until it is visible.

Case -1 When The Object is Not Visible

ForVisible and For Exists Property are Not Working in my tool.

Problem : The Time That we Specify lets say 10 Seconds .The tool immediately Throw an exception when the Object is Not Visible. it Dose not Wait For 10 Sec i.e. the Time That we specify is of no use in case in case the Object is Not Visible.

Tool -> Telerik Test Studio
Scripting Language--> C#

Any Suggestion to resolves this issue via C#..?

Regards,
Ayush Jain

推荐答案

有关它们的问题,请尝试此处: Telerik论坛 [ ^ ]



另外看看这些:

Telerik - 文档 [ ^ ]

Telerik - 在线演示 [ ^ ]
For questions on them, try here: Telerik Forum[^]

Also look at these:
Telerik - Documentation[^]
Telerik - Online Demos[^]


这篇关于如何动态等待自动化中的元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆