From b5fa672b2dfd0498f0ea695f1786af033c8c2407 Mon Sep 17 00:00:00 2001 From: yzerman Date: Tue, 8 Sep 2020 10:59:51 +0300 Subject: [PATCH] Fix waitForInvisible method --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 46fa2ff..5fc6233 100644 --- a/lib/index.js +++ b/lib/index.js @@ -182,7 +182,7 @@ module.exports = { }, waitForInvisible(selector, timeout = this.defaultWaitForTimeout) { - return $(selector).waitForDisplayed({timeout}, true); + return $(selector).waitForDisplayed({timeout, reverse: true}); }, waitForExist(selector, timeout = this.defaultWaitForTimeout) {