From 2c79d0d633c8292ead81d69345e5661b6ab168fd Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 30 Oct 2023 14:05:49 +0100 Subject: [PATCH] fix verifyCallReturnValue --- apps/remix-ide-e2e/src/commands/verifyCallReturnValue.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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++) {