samedi 17 mars 2018

HOw can I continue my script if an element not found?

I have to run my logic for several times, based on test data.

Here, in some iterations few fields are optional so I get No element found exception but thats ok for me to pass the TC, so I want to continue my script.

And in next iteration my script should again look for that field, if its present it should follow path 1 or else path 2.

How can I achieve this ?

Please help...

Aucun commentaire:

Enregistrer un commentaire