|
|
@ -21,8 +21,11 @@ function addInstance (browser: NightwatchBrowser, address: string, isValidFormat |
|
|
|
.setValue('.ataddressinput', address, function () { |
|
|
|
.setValue('.ataddressinput', address, function () { |
|
|
|
if (!isValidFormat || !isValidChecksum) browser.assert.elementPresent('button[id^="runAndDeployAtAdressButton"]:disabled') |
|
|
|
if (!isValidFormat || !isValidChecksum) browser.assert.elementPresent('button[id^="runAndDeployAtAdressButton"]:disabled') |
|
|
|
else if (isAbi) { |
|
|
|
else if (isAbi) { |
|
|
|
browser.useXpath() |
|
|
|
browser |
|
|
|
.click('//button[@id="runAndDeployAtAdressButton"]') |
|
|
|
.click({ |
|
|
|
|
|
|
|
selector:'//button[@id="runAndDeployAtAdressButton"]', |
|
|
|
|
|
|
|
locateStrategy: 'xpath' |
|
|
|
|
|
|
|
}) |
|
|
|
.waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]', 5000) |
|
|
|
.waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]', 5000) |
|
|
|
.execute(function () { |
|
|
|
.execute(function () { |
|
|
|
const modal = document.querySelector('[data-id="udappNotify-modal-footer-ok-react"]') as any |
|
|
|
const modal = document.querySelector('[data-id="udappNotify-modal-footer-ok-react"]') as any |
|
|
|