public waitForElementUntilIsPresent ( |
||
$locator | ||
$timeOutSeconds | integer | |
Результат | mixed |
public function waitForElementUntilIsPresent(By $locator, $timeOutSeconds = 5)
{
$wait = new WebDriverWait($timeOutSeconds);
$dynamicElement = $wait->until($this, "findElement", array($locator, true));
return $dynamicElement;
}