diff --git a/.github/workflows/browser-tests.yaml b/.github/workflows/browser-tests.yaml index b97da6e2..1afbc2e4 100644 --- a/.github/workflows/browser-tests.yaml +++ b/.github/workflows/browser-tests.yaml @@ -16,7 +16,7 @@ jobs: test-suite: '--profile=browser --suite=admin-ui-full' test-setup-phase-1: '--profile=regression --suite=setup-oss --mode=standard' multirepository: true - timeout: 40 + timeout: 60 php-image: "ezsystems/php:8.1-v2-node16" secrets: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/src/lib/Browser/Element/Element.php b/src/lib/Browser/Element/Element.php index 30218d5c..419ba505 100644 --- a/src/lib/Browser/Element/Element.php +++ b/src/lib/Browser/Element/Element.php @@ -10,12 +10,12 @@ use Behat\Mink\Element\NodeElement; use Behat\Mink\Session; +use Facebook\WebDriver\Exception\NoSuchElementException; +use Facebook\WebDriver\Exception\StaleElementReferenceException; use Ibexa\Behat\Browser\Assert\ElementAssert; use Ibexa\Behat\Browser\Assert\ElementAssertInterface; use Ibexa\Behat\Browser\Element\Factory\ElementFactoryInterface; use Ibexa\Behat\Browser\Locator\LocatorInterface; -use Webdriver\Exception\NoSuchElement; -use WebDriver\Exception\StaleElementReference; final class Element extends BaseElement implements ElementInterface { @@ -33,9 +33,9 @@ public function isVisible(): bool { try { return $this->decoratedElement->isVisible(); - } catch (StaleElementReference $e) { + } catch (NoSuchElementException $element) { return false; - } catch (NoSuchElement $element) { + } catch (StaleElementReferenceException $e) { return false; } }