Forum Discussion
kaiiii
7 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
baxatob
7 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")
{
}