|
|
|
@ -5,7 +5,11 @@ class ClickInstance extends EventEmitter { |
|
|
|
|
command (this: NightwatchBrowser, index: number): NightwatchBrowser { |
|
|
|
|
const selector = `[data-id="universalDappUiTitleExpander${index}"]` |
|
|
|
|
|
|
|
|
|
this.api.waitForElementPresent(selector).waitForElementContainsText(selector, '', 60000).scrollAndClick(selector).perform(() => { this.emit('complete') }) |
|
|
|
|
this.api.waitForElementPresent({ |
|
|
|
|
locateStrategy: 'css selector', |
|
|
|
|
selector, |
|
|
|
|
timeout: 60000 |
|
|
|
|
}).waitForElementContainsText(selector, '', 60000).scrollAndClick(selector).perform(() => { this.emit('complete') }) |
|
|
|
|
return this |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|