Commit 9309f2fe authored by aniket-engg's avatar aniket-engg Committed by Aniket

addAtAddressInstance updated

parent f63dfa43
......@@ -15,7 +15,15 @@ class addAtAddressInstance extends EventEmitter {
function addInstance (browser: NightwatchBrowser, address: string, isValidFormat: boolean, isValidChecksum: boolean, callback: VoidFunction) {
browser.clickLaunchIcon('udapp').clearValue('.ataddressinput').setValue('.ataddressinput', address, function () {
if (!isValidFormat || !isValidChecksum) { browser.assert.elementPresent('button[id^="runAndDeployAtAdressButton"]:disabled') } else callback()
if (!isValidFormat || !isValidChecksum) browser.assert.elementPresent('button[id^="runAndDeployAtAdressButton"]:disabled')
else {
browser.click('button[id^="runAndDeployAtAdressButton"]')
.execute(function () {
const modal = document.querySelector('#modal-footer-ok') as HTMLElement
modal.click()
})
}
callback()
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment