diff --git a/appium/tests/screenobjects/refresh-key.screen.ts b/appium/tests/screenobjects/refresh-key.screen.ts index ce4d2c7de..16b9f3922 100644 --- a/appium/tests/screenobjects/refresh-key.screen.ts +++ b/appium/tests/screenobjects/refresh-key.screen.ts @@ -34,7 +34,7 @@ class RefreshKeyScreen extends BaseScreen { }; cancelRefresh = async () => { - await driver.dismissAlert(); + await ElementHelper.waitAndClick(await this.cancelButton); }; clickOkButton = async () => {