Forum Discussion
JavierCollRodri
13 years agoContributor
Hi Joffre,
I think the problem is that you are checking that the object exists, but you are not searching again for it again, so it will never exist.
You can try something like that:
// Search for the object and assign it to PnlTitle
while ( !PnlTitle.Exists ) {
// Search for the object and assign it to PnlTitle
// Click on button
}
You could also add a counter to the while, so it won't enter an infinite loop.
Hope it helped!
I think the problem is that you are checking that the object exists, but you are not searching again for it again, so it will never exist.
You can try something like that:
// Search for the object and assign it to PnlTitle
while ( !PnlTitle.Exists ) {
// Search for the object and assign it to PnlTitle
// Click on button
}
You could also add a counter to the while, so it won't enter an infinite loop.
Hope it helped!