Forum Discussion
baxatob
Community Hero
Function callDelay(time,PropertyName, KeyValue, TagName) ... Set Document = page.NativeWebObject.Find(PropertyName, KeyValue, TagName) Set Registration_Confirm = page.NativeWebObject.Find(PropertyName, KeyValue, TagName)
...
Within the scope of the above function Document and Registration_Confirm objects are the same, because they are using the same arguments.
kaiiii
6 years agoRegular Contributor
Hi, i got your point
will it work if i use different argument for 2nd object ??
i mean if i use Title or something extra
- baxatob6 years agoCommunity Hero
Give a try.
But on my point better to separate finding of elements. Like:
//p s e u d o c o d e function MyFind(Property, Value, Timeout) { return page.WaitProperty(Property, Value, Timeout) } function MyTest() { someAction() if MyFind(Property1, Value1, Timeout) { doSomething() } elif MyFind(Property2, Value2, Timeout) { doSomethingElse() }
else {
Log.Warning("Nothing was found")
{ }
Related Content
- 6 months agopaarmann-ara
- 9 years agoteak
- 5 years agoToananas
Recent Discussions
- 3 days agovladd1