facebook/php-webdriver — pull request #121 by ksiv (2014-01-21 09:43:04+00:00)
Title: Contribution suggestion: function welement to WebDriverContainer.php

/*
Since everybody makes these waiting with custom functions or even uglier "sleeps", why not to add them into the core. Naming and particularities at your consideration. I did like this and it's working since just fine for me.
*/
//**<curl(
'POST',
'/element',
array(
'using' => $using,
'value' => $value),
$curl_opts);
if ($results) {
return $this->webDriverElement($results['value']);
}
} catch (PHPWebDriver_NoSuchElementWebDriverError $e) {

}
usleep(intval($poll_frequency * 1000000));
}
throw new PHPWebDriver_TimeOutWebDriverError(
sprintf(
'Element wait timed out after %s',
$timeout) . "\n\n");

}
//**CODE>>**

/* It's the second day i'm using php+ selenium, let me know if you find my ideas to be OK. */