Open piotruela opened 2 months ago
In some tests, there is a situation where I need to click on the dialog to close it, but it does not show every time. (i.e. cookie consent dialog on webview). Currently I need to wrap the action of clicking on dialog with try-catch.
try { await $.native.tap(Selector(textStartsWith: 'ACCEPT')); } on PatrolActionException catch (_) { // ignore }
I want to be able to mark action as optional to not be forced to wrap it with try-catch.
optional
await $.native.tap(Selector(textStartsWith: 'ACCEPT'), optional: true);
Use case
In some tests, there is a situation where I need to click on the dialog to close it, but it does not show every time. (i.e. cookie consent dialog on webview). Currently I need to wrap the action of clicking on dialog with try-catch.
Proposal
I want to be able to mark action as
optional
to not be forced to wrap it with try-catch.