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.

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部