Forum Discussion
So as you see from the output, the script is actually working as expected with WaitAliasChild.
abrar22 wrote:If i am using WaitAliasChild then it's not even waiting for the element and scripts fails
The script is not waiting because it is finding the element right away and hence according to the expected functionality WaitAliasChild is not waiting for 50000 ms.
The script fails because you're checking for a property VisibleOnScreen which is false for the element. Hence the if condition is false and your script 'fails'. You should check and see if you can use the Visible property instead.
Its quite weird that its Logging true for Exists and Visible because when I am running the tests I can see that its still refreshing the window and tests fails even before WLbl_ValidationImage appears after the refresh.