change click command

pull/2904/head
Joseph Izang 2 years ago
parent 44878f25c2
commit 1e597efdd9
  1. 5
      apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts

@ -26,10 +26,7 @@ function addInstance (browser: NightwatchBrowser, address: string, isValidFormat
selector: '//span[@data-id="runAndDeployAtAddressButton"]', selector: '//span[@data-id="runAndDeployAtAddressButton"]',
locateStrategy: 'xpath' locateStrategy: 'xpath'
}) })
.click({ .click('//button[@id="runAndDeployAtAdressButton"]')
selector: '//button[@id="runAndDeployAtAdressButton"]',
locateStrategy: 'xpath'
})
.waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]') .waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]')
.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

Loading…
Cancel
Save