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

at line line 89
string toString()

Returns a string representation of the object.

Return Value

string

at line line 30
void __construct( string $selector, array $attributes = array())

Create a new constraint instance.

Parameters

string $selector
array $attributes

Return Value

void

at line line 42
bool matches( Crawler|string $crawler)

Check if the element is found in the given crawler.

Parameters

Crawler|string $crawler

Return Value

bool