class WebAssert in SimpleTest 8.3
Defines a class with methods for asserting presence of elements during tests.
Hierarchy
Expanded class hierarchy of WebAssert
Deprecated
in Drupal 8.1.1 will be removed before 9.0.0. This was moved to another namespace.
See also
\Drupal\Tests
File
- src/
WebAssert.php, line 15
Namespace
Drupal\simpletestView source
class WebAssert extends BaseWebAssert {
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
WebAssert:: |
protected | property | The absolute URL of the site under test. | |
WebAssert:: |
public | function | Asserts a condition. | |
WebAssert:: |
public | function | Passes if the raw text IS found escaped on the loaded page. | 1 |
WebAssert:: |
public | function | Passes if the raw text IS NOT found escaped on the loaded page. | 1 |
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. |