|
|
@ -1,7 +1,7 @@ |
|
|
|
const EventEmitter = require('events') |
|
|
|
const EventEmitter = require('events') |
|
|
|
|
|
|
|
|
|
|
|
class VerifyContracts extends EventEmitter { |
|
|
|
class VerifyContracts extends EventEmitter { |
|
|
|
command (compiledContractNames, opts = { wait: 1000 }) { |
|
|
|
command (compiledContractNames, opts = { wait: 15000 }) { |
|
|
|
this.api.perform((done) => { |
|
|
|
this.api.perform((done) => { |
|
|
|
verifyContracts(this.api, compiledContractNames, opts, () => { |
|
|
|
verifyContracts(this.api, compiledContractNames, opts, () => { |
|
|
|
done() |
|
|
|
done() |
|
|
@ -16,7 +16,8 @@ function getCompiledContracts (browser, opts, callback) { |
|
|
|
browser |
|
|
|
browser |
|
|
|
.clickLaunchIcon('solidity') |
|
|
|
.clickLaunchIcon('solidity') |
|
|
|
.pause(opts.wait) |
|
|
|
.pause(opts.wait) |
|
|
|
.waitForElementPresent('#compileTabView select#compiledContracts option') |
|
|
|
.scrollInto('*[data-id="compiledContracts"] option:first-child') |
|
|
|
|
|
|
|
.waitForElementPresent('*[data-id="compiledContracts"] option') |
|
|
|
.execute(function () { |
|
|
|
.execute(function () { |
|
|
|
var contracts = document.querySelectorAll('#compileTabView select#compiledContracts option') |
|
|
|
var contracts = document.querySelectorAll('#compileTabView select#compiledContracts option') |
|
|
|
if (!contracts) { |
|
|
|
if (!contracts) { |
|
|
|