Skip to content

Commit

Permalink
[TASK] Prepare for younger selenium-chrome (#226)
Browse files Browse the repository at this point in the history
Some webdriver detail seems to throw a different
exception when an element is not found. Adapt
the page tree helper to deal with this.
  • Loading branch information
lolli42 committed Feb 23, 2021
1 parent 0200b77 commit 8714f2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/Core/Acceptance/Helper/AbstractPageTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ protected function ensureTreeNodeIsOpen(string $nodeText, RemoteWebElement $cont
// element not found so it may be already opened...
} catch (\Facebook\WebDriver\Exception\ElementNotVisibleException $e) {
// element not found so it may be already opened...
} catch (\Facebook\WebDriver\Exception\ElementNotInteractableException $e) {
// another possible exception if the chevron isn't there ... depends on facebook driver version
}

return $context;
Expand Down

0 comments on commit 8714f2e

Please sign in to comment.