From fe44d27b27f12af6012b350adb18868f9cba85b1 Mon Sep 17 00:00:00 2001 From: Maksym Shykov Date: Thu, 14 May 2020 11:01:26 +0300 Subject: [PATCH] Return true if control displayed within timeout --- libs/action.js | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/action.js b/libs/action.js index 9bd305a..3a36ba7 100644 --- a/libs/action.js +++ b/libs/action.js @@ -138,6 +138,7 @@ module.exports = { waitIsDisplayed(selector, waitTime = this.defaultWaitTime) { try { this.waitForVisible(selector, waitTime); + return true; } catch (err) { return false; }