diff --git a/lib/helper/TestCafe.js b/lib/helper/TestCafe.js index 5a084f9d7..6c789ed3d 100644 --- a/lib/helper/TestCafe.js +++ b/lib/helper/TestCafe.js @@ -1208,7 +1208,7 @@ async function proceedClick(locator, context = null) { await assertElementExists(els, locator, 'Clickable element'); } - const firstElement = await els.nth(0); + const firstElement = await els.filterVisible().nth(0); return this.t .click(firstElement)