Skip to content

Commit 1132923

Browse files
filip mertensyann300
authored andcommitted
click instance
1 parent 2bb2a00 commit 1132923

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ class ClickInstance extends EventEmitter {
55
command (this: NightwatchBrowser, index: number): NightwatchBrowser {
66
const selector = `[data-id="universalDappUiTitleExpander${index}"]`
77

8-
this.api.waitForElementPresent(selector).waitForElementContainsText(selector, '', 60000).scrollAndClick(selector).perform(() => { this.emit('complete') })
8+
this.api.waitForElementPresent({
9+
locateStrategy: 'css selector',
10+
selector,
11+
timeout: 60000
12+
}).waitForElementContainsText(selector, '', 60000).scrollAndClick(selector).perform(() => { this.emit('complete') })
913
return this
1014
}
1115
}

0 commit comments

Comments
 (0)