\duncan3dc\LaravelElement

Summary

Methods
Properties
Constants
convertElement()
__construct()
__call()
elements()
element()
parent()
click()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$driver
$resolver
N/A

Properties

$driver

$driver : \Facebook\WebDriver\Remote\RemoteWebElement

Type

\Facebook\WebDriver\Remote\RemoteWebElement — The element to wrap.

$resolver

$resolver : \Laravel\Dusk\ElementResolver

Type

\Laravel\Dusk\ElementResolver — The resolver to use.

Methods

convertElement()

convertElement(  $element) 

Parameters

$element

__construct()

__construct(\Facebook\WebDriver\Remote\RemoteWebElement  $element) 

Parameters

\Facebook\WebDriver\Remote\RemoteWebElement $element

__call()

__call(  $function,   $args) 

Parameters

$function
$args

elements()

elements(string  $selector) : array<mixed,\duncan3dc\Laravel\Element>

Get all of the elements matching the given selector.

Parameters

string $selector

Returns

array<mixed,\duncan3dc\Laravel\Element>

element()

element(string  $selector) : \duncan3dc\Laravel\Element|null

Get the element matching the given selector.

Parameters

string $selector

Returns

\duncan3dc\Laravel\Element|null

parent()

parent(string  $selector = "*") : \duncan3dc\Laravel\Element|null

Get one of the parents of this element.

Parameters

string $selector

Returns

\duncan3dc\Laravel\Element|null

click()

click(string  $selector = null) : $this

Click the element at the given selector (or this element).

Parameters

string $selector

Returns

$this