|
|
|
@ -4,6 +4,14 @@ import EventEmitter from 'events' |
|
|
|
|
class SetSolidityCompilerVersion extends EventEmitter { |
|
|
|
|
command (this: NightwatchBrowser, version: string): NightwatchBrowser { |
|
|
|
|
this.api |
|
|
|
|
.waitForElementVisible({ |
|
|
|
|
selector: "//*[@id='versionSelector']", |
|
|
|
|
locateStrategy: 'xpath' |
|
|
|
|
}) |
|
|
|
|
.waitForElementPresent({ |
|
|
|
|
selector: `//option[@value='${version}']`, |
|
|
|
|
locateStrategy: 'xpath' |
|
|
|
|
}) |
|
|
|
|
.click(`#compileTabView #versionSelector [value="${version}"]`) |
|
|
|
|
.pause(5000) |
|
|
|
|
.saveScreenshot(`./reports/screenshots/${version}.png`) |
|
|
|
|