HumHub Documentation (unofficial)

ActionSequence
in package

Class for defining an array actions to be executed inside `performOn` of WebDriver

<?php
(new ActionSequence)->click('do')->click('undo');
ActionSequence::build()->click('do')->click('undo');
Tags
@method

$this see([optional])

@method

$this dontSee([optional])

@method

$this seeElement([optional])

@method

$this dontSeeElement([optional])

@method

$this click([optional])

@method

$this wait([optional])

@method

$this waitForElementChange([optional])

@method

$this waitForElement([optional])

@method

$this waitForElementVisible([optional])

@method

$this waitForElementNotVisible([optional])

@method

$this waitForText([optional])

@method

$this submitForm([optional])

@method

$this seeLink([optional])

@method

$this dontSeeLink([optional])

@method

$this seeCheckboxIsChecked([optional])

@method

$this dontSeeCheckboxIsChecked([optional])

@method

$this seeInField([optional])

@method

$this dontSeeInField([optional])

@method

$this seeInFormFields([optional])

@method

$this dontSeeInFormFields([optional])

@method

$this selectOption([optional])

@method

$this checkOption([optional])

@method

$this uncheckOption([optional])

@method

$this fillField([optional])

@method

$this attachFile([optional])

@method

$this seeNumberOfElements([optional])

@method

$this seeOptionIsSelected([optional])

@method

$this dontSeeOptionIsSelected([optional])

Table of Contents

Properties

$actions  : mixed

Methods

__call()  : mixed
__toString()  : mixed
build()  : ActionSequence
Creates an instance
fromArray()  : $this
Creates action sequence from associative array, where key is action, and value is action arguments
run()  : mixed
Executes sequence of action as methods of passed object.
toArray()  : array<string|int, mixed>
Returns a list of logged actions as associative array
addAction()  : mixed

Properties

Methods

__call()

public __call(mixed $action, mixed $arguments) : mixed
Parameters
$action : mixed
$arguments : mixed

fromArray()

Creates action sequence from associative array, where key is action, and value is action arguments

public fromArray(array<string|int, mixed> $actions) : $this
Parameters
$actions : array<string|int, mixed>
Return values
$this

run()

Executes sequence of action as methods of passed object.

public run(mixed $context) : mixed
Parameters
$context : mixed

toArray()

Returns a list of logged actions as associative array

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

addAction()

protected addAction(mixed $action, mixed $arguments) : mixed
Parameters
$action : mixed
$arguments : mixed

        
On this page

Search results