Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
peripherad
/
vendor
/
php-webdriver
/
webdriver
/
lib
/
Interactions
:
WebDriverCompositeAction.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Facebook\WebDriver\Interactions; use Facebook\WebDriver\WebDriverAction; /** * An action for aggregating actions and triggering all of them afterwards. */ class WebDriverCompositeAction implements WebDriverAction { /** * @var WebDriverAction[] */ private $actions = []; /** * Add an WebDriverAction to the sequence. * * @return WebDriverCompositeAction The current instance. */ public function addAction(WebDriverAction $action) { $this->actions[] = $action; return $this; } /** * Get the number of actions in the sequence. * * @return int The number of actions. */ public function getNumberOfActions() { return count($this->actions); } /** * Perform the sequence of actions. */ public function perform() { foreach ($this->actions as $action) { $action->perform(); } } }