![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/php-webdriver/webdriver/lib/Interactions/ |
<?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. * * @param WebDriverAction $action * @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(); } } }