Skip to content

Commit 2b10ba2

Browse files
authored
Merge pull request #319 from teeps-co/hotfix/unknown-error
Added missing exception catch
2 parents 5352c9a + 8dd0cd7 commit 2b10ba2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Selenium2Driver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,8 @@ private function clickOnElement(Element $element)
799799
$this->wdSession->moveto(array('element' => $element->getID()));
800800
} catch (UnknownCommand $e) {
801801
// If the Webdriver implementation does not support moveto (which is not part of the W3C WebDriver spec), proceed to the click
802+
} catch (UnknownError $e) {
803+
// Chromium driver sends back UnknowError (WebDriver\Exception with code 13)
802804
}
803805

804806
$element->click();

0 commit comments

Comments
 (0)