function JSWebAssert::waitForId
Same name in other branches
- 9 core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php \Drupal\FunctionalJavascriptTests\JSWebAssert::waitForId()
- 10 core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php \Drupal\FunctionalJavascriptTests\JSWebAssert::waitForId()
- 11.x core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php \Drupal\FunctionalJavascriptTests\JSWebAssert::waitForId()
Waits for an element by its id and returns it when available.
Parameters
string $id: The element ID.
int $timeout: (Optional) Timeout in milliseconds, defaults to 10000.
Return value
\Behat\Mink\Element\NodeElement|null The page element node if found, NULL if not.
File
-
core/
tests/ Drupal/ FunctionalJavascriptTests/ JSWebAssert.php, line 207
Class
- JSWebAssert
- Defines a class with methods for asserting presence of elements during tests.
Namespace
Drupal\FunctionalJavascriptTestsCode
public function waitForId($id, $timeout = 10000) {
return $this->waitForElement('named', [
'id',
$id,
], $timeout);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.