From 2b69de79d6fd5e2bfba745fecc4197a9aae654c9 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 27 Jun 2019 14:10:28 +0200 Subject: [PATCH] Update signMessage.js --- test-browser/commands/signMessage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-browser/commands/signMessage.js b/test-browser/commands/signMessage.js index 4767bfc9c5..945107f172 100644 --- a/test-browser/commands/signMessage.js +++ b/test-browser/commands/signMessage.js @@ -22,12 +22,12 @@ function signMsg (browser, msg, cb) { .setValue('textarea[id="prompt_text"]', msg, () => { browser.modalFooterOKClick().perform( (client, done) => { - browser.waitForElementPresent('span[id="remixRunSignMsgHash"]').getText('span[id="remixRunSignMsgHash"]', (v) => { hash = v; done() }) + browser.waitForElementVisible('span[id="remixRunSignMsgHash"]').getText('span[id="remixRunSignMsgHash"]', (v) => { hash = v; done() }) } ) .perform( (client, done) => { - browser.waitForElementPresent('span[id="remixRunSignMsgSignature"]').getText('span[id="remixRunSignMsgSignature"]', (v) => { signature = v; done() }) + browser.waitForElementVisible('span[id="remixRunSignMsgSignature"]').getText('span[id="remixRunSignMsgSignature"]', (v) => { signature = v; done() }) } ) .modalFooterOKClick()