W3cubDocs

/Laravel 5.3

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.

Return Value

string

void __construct(string $selector, array $attributes = array())

Create a new constraint instance.

Parameters

string $selector
array $attributes

Return Value

void

bool matches(Crawler|string $crawler)

Check if the element is found in the given crawler.

Parameters

Crawler|string $crawler

Return Value

bool

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Foundation/Testing/Constraints/HasElement.html