diff --git a/apps/remix-ide-e2e/src/commands/verifyCallReturnValue.ts b/apps/remix-ide-e2e/src/commands/verifyCallReturnValue.ts index fdc229ccd5..45b8e31437 100644 --- a/apps/remix-ide-e2e/src/commands/verifyCallReturnValue.ts +++ b/apps/remix-ide-e2e/src/commands/verifyCallReturnValue.ts @@ -15,7 +15,13 @@ class VerifyCallReturnValue extends EventEmitter { } function verifyCallReturnValue (browser: NightwatchBrowser, address: string, checks: string[] | callbackCheckVerifyCallReturnValue, done: VoidFunction) { - browser.execute(function (address: string) { + browser + .waitForElementVisible({ + locateStrategy: 'css selector', + selector: '#instance' + address + ' [data-id="udapp_value"]', + timeout: 60000 + }) + .execute(function (address: string) { const nodes = document.querySelectorAll('#instance' + address + ' [data-id="udapp_value"]') as NodeListOf const ret = [] for (let k = 0; k < nodes.length; k++) {