class IsChecked extends FormFieldConstraint (View source)
protected string | $selector | The name or ID of the element. | from FormFieldConstraint |
protected string | $value | The expected value. | from FormFieldConstraint |
string | html(Crawler|string $crawler) Make sure we obtain the HTML from the crawler or the response. | from PageConstraint |
string | text(Crawler|string $crawler) Make sure we obtain the HTML from the crawler or the response. | from PageConstraint |
Crawler | crawler(Crawler|string $crawler) Create a crawler instance if the given value is not already a Crawler. | from PageConstraint |
string | getEscapedPattern(string $text) Get the escaped text pattern for the constraint. | from PageConstraint |
void | fail(Crawler|string $crawler, string $description, ComparisonFailure $comparisonFailure = null) Throw an exception for the given comparison and test description. | from PageConstraint |
string | getFailureDescription() Return the description of the failure. | |
string | getReverseFailureDescription() Returns the reversed description of the failure. | |
string | toString() Get a string representation of the object. | from PageConstraint |
void | __construct(string $selector) Create a new constraint instance. | |
string | validElements() Get the valid elements. | |
Crawler | field(Crawler $crawler) Get the form field. | from FormFieldConstraint |
array | getElements() Get the elements relevant to the selector. | from FormFieldConstraint |
bool | matches(Crawler|string $crawler) Determine if the checkbox is checked. |
Make sure we obtain the HTML from the crawler or the response.
Make sure we obtain the HTML from the crawler or the response.
Create a crawler instance if the given value is not already a Crawler.
Get the escaped text pattern for the constraint.
Throw an exception for the given comparison and test description.
Return the description of the failure.
Returns the reversed description of the failure.
Get a string representation of the object.
Placeholder method to avoid forcing definition of this method.
Create a new constraint instance.
Get the valid elements.
Get the form field.
Get the elements relevant to the selector.
Determine if the checkbox is checked.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.5/Illuminate/Foundation/Testing/Constraints/IsChecked.html