diff --git a/apps/remix-ide-e2e/src/tests/plugin_api.ts b/apps/remix-ide-e2e/src/tests/plugin_api.ts index 64160abc09..fa7f253cc3 100644 --- a/apps/remix-ide-e2e/src/tests/plugin_api.ts +++ b/apps/remix-ide-e2e/src/tests/plugin_api.ts @@ -80,7 +80,7 @@ const checkForAcceptAndRemember = async function (browser: NightwatchBrowser) { // @ts-ignore browser.frame(0, () => { resolve(true) }) } else { - browser.click('//*[@id="remember"]').click('//*[@id="modal-footer-ok"]', () => { + browser.waitForElementVisible('//*[@id="remember"]').click('//*[@id="remember"]').click('//*[@id="modal-footer-ok"]', () => { // @ts-ignore browser.frame(0, () => { resolve(true) }) })