Skip to content

Commit 01e9b22

Browse files
filip mertensyann300
authored andcommitted
fix verifyCallReturnValue
1 parent 3ad9ab3 commit 01e9b22

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

apps/remix-ide-e2e/src/commands/verifyCallReturnValue.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ class VerifyCallReturnValue extends EventEmitter {
1515
}
1616

1717
function verifyCallReturnValue (browser: NightwatchBrowser, address: string, checks: string[] | callbackCheckVerifyCallReturnValue, done: VoidFunction) {
18-
browser.execute(function (address: string) {
18+
browser
19+
.waitForElementVisible({
20+
locateStrategy: 'css selector',
21+
selector: '#instance' + address + ' [data-id="udapp_value"]',
22+
timeout: 60000
23+
})
24+
.execute(function (address: string) {
1925
const nodes = document.querySelectorAll('#instance' + address + ' [data-id="udapp_value"]') as NodeListOf<HTMLElement>
2026
const ret = []
2127
for (let k = 0; k < nodes.length; k++) {

0 commit comments

Comments
 (0)