end command gets executed even if a preceding command fails. E.g. browser.waitForElementIsVisible("non-existing-item", 500).end()
I need to write a custom command that gets called always same as end command. If I try browser.waitForElementIsVisible("non-existing-item", 500).saveVideo().end()
or browser.waitForElementIsVisible("non-existing-item", 500).saveVideoAndEnd()
the command does not get called if prev command fails.
Is there a way to achieve this?
Thanks Tomas
Aucun commentaire:
Enregistrer un commentaire