Property | Type | Description | |
---|---|---|---|
$driver | Facebook\WebDriver\Remote\RemoteWebDriver |
Method | Description | |
---|---|---|
notSee ( $selector ) | Wait and validate an element to be invisible. | |
see ( $selector ) | Wait and validate an element to be visible. | |
seeText ( $text, $selector ) | Wait and validate a text to be visible in an element. |
Method | Description | |
---|---|---|
back ( ) | Navigate back. | |
click ( $element ) : Facebook\WebDriver\WebDriverElement | Click an element. | |
doubleClick ( $element ) | Double-click and element. | |
el ( $selector ) : Facebook\WebDriver\WebDriverElement | ||
els ( $selector ) : Facebook\WebDriver\Remote\RemoteWebElement[] | Get a list of elements by a selector. | |
enter ( ) | Press enter. | |
forward ( ) | Navigate forward. | |
press ( string $key = WebDriverKeys::ENTER ) | Press a key. | |
refresh ( ) | Refresh the page. | |
rightClick ( $element ) : Facebook\WebDriver\Remote\RemoteMouse | Right-click an element. | |
sleep ( $seconds ) | Sleep (implicit wait) for some seconds. | |
type ( $string ) | Type a string. | |
typeIn ( $element, $string ) | Type into an element. | |
waitUntil ( $func, integer $timeout = 10 ) | Wait until a condition is met. |
protected click ( $element ) : Facebook\WebDriver\WebDriverElement | ||
$element | ||
return | Facebook\WebDriver\WebDriverElement |
protected doubleClick ( $element ) | ||
$element |
protected el ( $selector ) : Facebook\WebDriver\WebDriverElement | ||
$selector | WebDriverElement|string | |
return | Facebook\WebDriver\WebDriverElement |
protected els ( $selector ) : Facebook\WebDriver\Remote\RemoteWebElement[] | ||
$selector | ||
return | Facebook\WebDriver\Remote\RemoteWebElement[] |
public notSee ( $selector ) | ||
$selector | string The element's CSS selector. |
protected rightClick ( $element ) : Facebook\WebDriver\Remote\RemoteMouse | ||
$element | ||
return | Facebook\WebDriver\Remote\RemoteMouse |
public seeText ( $text, $selector ) | ||
$text | ||
$selector | string The element's CSS selector. |
protected sleep ( $seconds ) | ||
$seconds |
protected typeIn ( $element, $string ) | ||
$element | ||
$string |