From a562af16569ea36b6a5cfec50d5e7f7fb0abd096 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Wed, 21 Sep 2022 21:59:34 +0200 Subject: [PATCH] Update addAtAddressInstance.ts --- apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts b/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts index 1c8c32ec75..f19cead596 100644 --- a/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts +++ b/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts @@ -21,8 +21,11 @@ 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.useXpath() - .click('//button[@id="runAndDeployAtAdressButton"]') + browser + .click({ + selector:'//button[@id="runAndDeployAtAdressButton"]', + locateStrategy: 'xpath' + }) .waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]', 5000) .execute(function () { const modal = document.querySelector('[data-id="udappNotify-modal-footer-ok-react"]') as any