Skip to content

Commit

Permalink
Added missing exception to ElementAssert::isVisible
Browse files Browse the repository at this point in the history
  • Loading branch information
mnocon committed Sep 27, 2023
1 parent d970f80 commit 247c792
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/Browser/Element/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

use Behat\Mink\Element\NodeElement;
use Behat\Mink\Session;
use Facebook\WebDriver\Exception\StaleElementReferenceException;
use Ibexa\Behat\Browser\Assert\ElementAssert;
use Ibexa\Behat\Browser\Assert\ElementAssertInterface;
use Ibexa\Behat\Browser\Element\Factory\ElementFactoryInterface;
Expand Down Expand Up @@ -37,6 +38,8 @@ public function isVisible(): bool
return false;
} catch (NoSuchElement $element) {
return false;
} catch (StaleElementReferenceException $e) {
return false;
}
}

Expand Down

0 comments on commit 247c792

Please sign in to comment.