class WebDriverWebAssert 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
Contains asynchronous assertions.
Hierarchy
- class \Drupal\Tests\WebAssert extends \Behat\Mink\WebAssert
- class \Drupal\FunctionalJavascriptTests\JSWebAssert
- class \Drupal\FunctionalJavascriptTests\WebDriverWebAssert
- class \Drupal\Tests\lightning_media\FunctionalJavascript\WebDriverWebAssert
- class \Drupal\FunctionalJavascriptTests\WebDriverWebAssert
- class \Drupal\FunctionalJavascriptTests\JSWebAssert
Expanded class hierarchy of WebDriverWebAssert
2 files declare their use of WebDriverWebAssert
- ImageBrowserCardinalityTest.php in modules/
lightning_media_image/ tests/ src/ FunctionalJavascript/ ImageBrowserCardinalityTest.php - SlideshowTest.php in modules/
lightning_media_slideshow/ tests/ src/ FunctionalJavascript/ SlideshowTest.php
File
- tests/
src/ FunctionalJavascript/ WebDriverWebAssert.php, line 11
Namespace
Drupal\Tests\lightning_media\FunctionalJavascriptView source
class WebDriverWebAssert extends BaseWebDriverWebAssert {
/**
* {@inheritdoc}
*/
public function waitForButton($locator, $timeout = 10000) {
$button = parent::waitForButton($locator, $timeout);
Assert::assertNotEmpty($button);
return $button;
}
/**
* {@inheritdoc}
*/
public function waitForElement($selector, $locator, $timeout = 10000) {
$element = parent::waitForElement($selector, $locator, $timeout);
Assert::assertNotEmpty($element);
return $element;
}
/**
* {@inheritdoc}
*/
public function waitForField($locator, $timeout = 10000) {
$field = parent::waitForField($locator, $timeout);
Assert::assertNotEmpty($field);
return $field;
}
/**
* {@inheritdoc}
*/
public function waitForLink($locator, $timeout = 10000) {
$link = parent::waitForLink($locator, $timeout);
Assert::assertNotEmpty($link);
return $link;
}
/**
* {@inheritdoc}
*/
public function waitForText($text, $timeout = 10000) {
$result = parent::waitForText($text, $timeout);
Assert::assertNotEmpty($result);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
JSWebAssert:: |
public | function |
Passes if the raw text IS found escaped on the loaded page. Overrides WebAssert:: |
|
JSWebAssert:: |
public | function | Asserts that no matching element exists on the page after a wait. | |
JSWebAssert:: |
public | function |
Passes if the raw text IS NOT found escaped on the loaded page. Overrides WebAssert:: |
|
JSWebAssert:: |
public | function | Test that a node, or its specific corner, is not visible in the viewport. | |
JSWebAssert:: |
public | function | Test that a node, or its specific corner, is visible in the viewport. | |
JSWebAssert:: |
public | function | Waits for AJAX request to be completed. | |
JSWebAssert:: |
private | function | Check the visibility of a node, or its specific corner. | |
JSWebAssert:: |
protected | function | Escapes HTML for testing. | |
JSWebAssert:: |
public | function | Looks for the specified selector and returns TRUE when it is unavailable. | |
JSWebAssert:: |
public | function | Waits for the specified selector and returns it when available and visible. | |
JSWebAssert:: |
public | function | Waits for an element by its id and returns it when available. | |
JSWebAssert:: |
public | function | Waits for the jQuery autocomplete delay duration. | |
WebAssert:: |
protected | property | The absolute URL of the site under test. | |
WebAssert:: |
public | function | Asserts a condition. | |
WebAssert:: |
public | function | Builds an XPath query. | |
WebAssert:: |
public | function | Checks that specific button exists on the current page. | |
WebAssert:: |
public | function | Checks that the specific button does NOT exist on the current page. | |
WebAssert:: |
protected | function | Trims scriptname from the URL. | |
WebAssert:: |
public | function | Checks that a given form field element is disabled. | |
WebAssert:: |
public | function | Checks that a given form field element is enabled. | |
WebAssert:: |
public | function | Checks that specific hidden field exists. | |
WebAssert:: |
public | function | Checks that specific hidden field does not exist. | |
WebAssert:: |
public | function | Checks that specific hidden field have provided value. | |
WebAssert:: |
public | function | Checks that specific hidden field doesn't have the provided value. | |
WebAssert:: |
public | function | Passes if a link containing a given href (part) is found. | |
WebAssert:: |
public | function | Passes if a link containing a given href (part) is not found. | |
WebAssert:: |
public | function | Passes if a link with the specified label is found. | |
WebAssert:: |
public | function | Passes if a link with the exactly specified label is found. | |
WebAssert:: |
public | function | Passes if a link with the specified label is not found. | |
WebAssert:: |
public | function | Passes if a link with the exactly specified label is not found. | |
WebAssert:: |
public | function | Checks that specific option in a select field exists on the current page. | |
WebAssert:: |
public | function | Checks that an option in a select field does NOT exist on the current page. | |
WebAssert:: |
public | function | Checks that current page contains text only once. | |
WebAssert:: |
public | function | Checks that page HTML (response content) contains text. | |
WebAssert:: |
public | function | Checks that page HTML (response content) does not contains text. | |
WebAssert:: |
public | function | Checks that specific select field exists on the current page. | |
WebAssert:: |
public | function | Pass if the page title is the given string. | |
WebAssert:: |
public | function | Constructor. | |
WebDriverWebAssert:: |
public | function | The use of responseHeaderContains() is not available. | |
WebDriverWebAssert:: |
public | function | The use of responseHeaderEquals() is not available. | |
WebDriverWebAssert:: |
public | function | The use of responseHeaderMatches() is not available. | |
WebDriverWebAssert:: |
public | function | The use of responseHeaderNotContains() is not available. | |
WebDriverWebAssert:: |
public | function | The use of responseHeaderNotEquals() is not available. | |
WebDriverWebAssert:: |
public | function | The use of responseHeaderNotMatches() is not available. | |
WebDriverWebAssert:: |
public | function | The use of statusCodeEquals() is not available. | |
WebDriverWebAssert:: |
public | function | The use of statusCodeNotEquals() is not available. | |
WebDriverWebAssert:: |
public | function |
Waits for a button (input[type=submit|image|button|reset], button) with
specified locator and returns it. Overrides JSWebAssert:: |
|
WebDriverWebAssert:: |
public | function |
Waits for the specified selector and returns it when available. Overrides JSWebAssert:: |
|
WebDriverWebAssert:: |
public | function |
Waits for a field with specified locator and returns it when available. Overrides JSWebAssert:: |
|
WebDriverWebAssert:: |
public | function |
Waits for a link with specified locator and returns it when available. Overrides JSWebAssert:: |
|
WebDriverWebAssert:: |
public | function |
Waits for the specified text and returns its element when available. Overrides JSWebAssert:: |