public function WebDriverWebAssert::waitForLink in Lightning Media 8.3
Same name and namespace in other branches
- 8.4 tests/src/FunctionalJavascript/WebDriverWebAssert.php \Drupal\Tests\lightning_media\FunctionalJavascript\WebDriverWebAssert::waitForLink()
Waits for a link with specified locator and returns it when available.
Parameters
string $locator: The link ID, title, text or image alt.
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.
Overrides JSWebAssert::waitForLink
File
- tests/
src/ FunctionalJavascript/ WebDriverWebAssert.php, line 43
Class
- WebDriverWebAssert
- Contains asynchronous assertions.
Namespace
Drupal\Tests\lightning_media\FunctionalJavascriptCode
public function waitForLink($locator, $timeout = 10000) {
$link = parent::waitForLink($locator, $timeout);
Assert::assertNotEmpty($link);
return $link;
}