Skip to content

Commit

Permalink
Fix is_element_present for ChromeDriver 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Eileen Xie committed Aug 8, 2014
1 parent ac0a7df commit c527ef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebDriver/Driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function get_active_element() {
public function is_element_present($locator) {
try {
$element = $this->get_element($locator);
if ($this->browser !== 'android') { // The android driver fails at this
if ($this->browser !== 'android' && $this->browser !== 'chrome') { // The android driver fails at this & chrome driver 2.0 does not implement this
$element->describe(); // Under certain conditions get_element returns cached information. This tests if the element is actually there.
}
$is_element_present = true;
Expand Down

0 comments on commit c527ef5

Please sign in to comment.