From 17a28113f2996bddac7793eb6ecb81cd7d62ccee Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Tue, 20 Sep 2022 21:08:10 +0100 Subject: [PATCH] change click command to use css selector locator strategy --- apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts b/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts index ddfadbbe82..d18102e2ca 100644 --- a/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts +++ b/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts @@ -21,7 +21,12 @@ function addInstance (browser: NightwatchBrowser, address: string, isValidFormat .setValue('.ataddressinput', address, function () { if (!isValidFormat || !isValidChecksum) browser.assert.elementPresent('button[id^="runAndDeployAtAdressButton"]:disabled') else if (isAbi) { - browser.click('button[data-id="runAndDeployAtAdressButton"]') + browser + // .click('button[data-id="runAndDeployAtAdressButton"]') + .click({ + locateStrategy: 'css selector', + selector: 'span > button[id="runAndDeployAtAdressButton"]' + }) .waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]') .execute(function () { const modal = document.querySelector('[data-id="udappNotify-modal-footer-ok-react"]') as any