HasElement (Foundation\Testing)
HasElement
class HasElement extends PageConstraint (View source)
Methods
string | toString() Returns a string representation of the object. | |
void | __construct(string $selector, array $attributes = array()) Create a new constraint instance. | |
bool | matches(Crawler|string $crawler) Check if the element is found in the given crawler. |
Details
string toString()
Returns a string representation of the object.
void __construct(string $selector, array $attributes = array())
Create a new constraint instance.
bool matches(Crawler|string $crawler)
Check if the element is found in the given crawler.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Foundation/Testing/Constraints/HasElement.html