Skip to content

Commit

Permalink
Skip command that the Android driver can't handle
Browse files Browse the repository at this point in the history
  • Loading branch information
chibimagic committed Feb 6, 2014
1 parent b44190a commit dccd97f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion WebDriver/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ public function get_active_element() {
public function is_element_present($locator) {
try {
$element = $this->get_element($locator);
$element->describe(); // Under certain conditions get_element returns cached information. This tests if the element is actually there.
if ($this->browser !== 'android') { // The android driver fails at this
$element->describe(); // Under certain conditions get_element returns cached information. This tests if the element is actually there.
}
$is_element_present = true;
} catch (Exception $e) {
$is_element_present = false;
Expand Down

0 comments on commit dccd97f

Please sign in to comment.