class WebDriverWebAssert in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/FunctionalJavascriptTests/WebDriverWebAssert.php \Drupal\FunctionalJavascriptTests\WebDriverWebAssert
Defines a JSWebAssert with no support for status code and header assertions.
Hierarchy
- class \Drupal\Tests\WebAssert extends \Behat\Mink\WebAssert
- class \Drupal\FunctionalJavascriptTests\JSWebAssert
- class \Drupal\FunctionalJavascriptTests\WebDriverWebAssert
- class \Drupal\FunctionalJavascriptTests\JSWebAssert
Expanded class hierarchy of WebDriverWebAssert
File
- core/
tests/ Drupal/ FunctionalJavascriptTests/ WebDriverWebAssert.php, line 8
Namespace
Drupal\FunctionalJavascriptTestsView source
class WebDriverWebAssert extends JSWebAssert {
/**
* The use of statusCodeEquals() is not available.
*
* @param int $code
* The status code.
*/
public function statusCodeEquals($code) {
@trigger_error('Support for statusCodeEquals is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
parent::statusCodeEquals($code);
}
/**
* The use of statusCodeNotEquals() is not available.
*
* @param int $code
* The status code.
*/
public function statusCodeNotEquals($code) {
@trigger_error('Support for statusCodeNotEquals is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
parent::statusCodeNotEquals($code);
}
/**
* The use of responseHeaderEquals() is not available.
*
* @param string $name
* The name of the header.
* @param string $value
* The value to check the header against.
*/
public function responseHeaderEquals($name, $value) {
@trigger_error('Support for responseHeaderEquals is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
parent::responseHeaderEquals($name, $value);
}
/**
* The use of responseHeaderNotEquals() is not available.
*
* @param string $name
* The name of the header.
* @param string $value
* The value to check the header against.
*/
public function responseHeaderNotEquals($name, $value) {
@trigger_error('Support for responseHeaderNotEquals is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
parent::responseHeaderNotEquals($name, $value);
}
/**
* The use of responseHeaderContains() is not available.
*
* @param string $name
* The name of the header.
* @param string $value
* The value to check the header against.
*/
public function responseHeaderContains($name, $value) {
@trigger_error('Support for responseHeaderContains is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
parent::responseHeaderContains($name, $value);
}
/**
* The use of responseHeaderNotContains() is not available.
*
* @param string $name
* The name of the header.
* @param string $value
* The value to check the header against.
*/
public function responseHeaderNotContains($name, $value) {
@trigger_error('Support for responseHeaderNotContains is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
parent::responseHeaderNotContains($name, $value);
}
/**
* The use of responseHeaderMatches() is not available.
*
* @param string $name
* The name of the header.
* @param string $regex
* The value to check the header against.
*/
public function responseHeaderMatches($name, $regex) {
@trigger_error('Support for responseHeaderMatches is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
parent::responseHeaderMatches($name, $regex);
}
/**
* The use of responseHeaderNotMatches() is not available.
*
* @param string $name
* The name of the header.
* @param string $regex
* The value to check the header against.
*/
public function responseHeaderNotMatches($name, $regex) {
@trigger_error('Support for responseHeaderNotMatches is to be dropped from JavaScript tests. See https://www.drupal.org/node/2857562.');
parent::responseHeaderNotMatches($name, $regex);
}
}
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 | Tests that a node, or its specific corner, is not visible in the viewport. | |
JSWebAssert:: |
public | function | Tests 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 | Waits for a button (input[type=submit|image|button|reset], button) with specified locator and returns it. | |
JSWebAssert:: |
public | function | Waits for the specified selector and returns it when available. | |
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 a field with specified locator and returns it when available. | |
JSWebAssert:: |
private | function | Wraps waits in a function to catch curl exceptions to continue waiting. | |
JSWebAssert:: |
public | function | Waits for an element by its id and returns it when available. | |
JSWebAssert:: |
public | function | Waits for a link with specified locator and returns it when available. | |
JSWebAssert:: |
public | function | Waits for the specified text and returns its element 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 | ||
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | ||
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:: |
public | function | ||
WebAssert:: |
public | function | ||
WebAssert:: |
protected | function | ||
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | Asserts a specific element's text equals an expected text. | |
WebAssert:: |
public | function | ||
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 | ||
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | ||
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 | Asserts that each HTML ID is used for just a single element on the page. | |
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | Checks that current page contains text only once. | |
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | Asserts that the current page text matches regex a number of times. | |
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | Checks that page HTML (response content) contains text. | |
WebAssert:: |
public | function | Asserts that the current response header does not have a specific entry. | |
WebAssert:: |
public | function | Asserts that the current response header has a specific entry. | |
WebAssert:: |
public | function | ||
WebAssert:: |
public | function | Checks that page HTML (response content) does not contains text. | |
WebAssert:: |
public | function | ||
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. Overrides WebAssert:: |
|
WebDriverWebAssert:: |
public | function |
The use of responseHeaderEquals() is not available. Overrides WebAssert:: |
|
WebDriverWebAssert:: |
public | function |
The use of responseHeaderMatches() is not available. Overrides WebAssert:: |
|
WebDriverWebAssert:: |
public | function |
The use of responseHeaderNotContains() is not available. Overrides WebAssert:: |
|
WebDriverWebAssert:: |
public | function |
The use of responseHeaderNotEquals() is not available. Overrides WebAssert:: |
|
WebDriverWebAssert:: |
public | function |
The use of responseHeaderNotMatches() is not available. Overrides WebAssert:: |
|
WebDriverWebAssert:: |
public | function |
The use of statusCodeEquals() is not available. Overrides WebAssert:: |
|
WebDriverWebAssert:: |
public | function |
The use of statusCodeNotEquals() is not available. Overrides WebAssert:: |