From 87bc37c5c78ed989995a21ae28e53ebdd9265f82 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Tue, 20 Sep 2022 23:28:32 +0100 Subject: [PATCH] more e2e changes --- apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts b/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts index 2cef412369..30300e8ac0 100644 --- a/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts +++ b/apps/remix-ide-e2e/src/commands/addAtAddressInstance.ts @@ -21,11 +21,7 @@ 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 - .isVisible({ - selector: '//span[@data-id="runAndDeployAtAddressButton"]', - locateStrategy: 'xpath' - }) + browser.useXpath() .click('//button[@id="runAndDeployAtAdressButton"]') .waitForElementPresent('[data-id="udappNotify-modal-footer-ok-react"]') .execute(function () {