1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <?php
- namespace Facebook\WebDriver\Interactions\Touch;
- use Facebook\WebDriver\WebDriverAction;
- use Facebook\WebDriver\WebDriverElement;
- class WebDriverFlickFromElementAction extends WebDriverTouchAction implements WebDriverAction
- {
-
- private $x;
-
- private $y;
-
- private $speed;
-
- public function __construct(
- WebDriverTouchScreen $touch_screen,
- WebDriverElement $element,
- $x,
- $y,
- $speed
- ) {
- $this->x = $x;
- $this->y = $y;
- $this->speed = $speed;
- parent::__construct($touch_screen, $element);
- }
- public function perform()
- {
- $this->touchScreen->flickFromElement(
- $this->locationProvider,
- $this->x,
- $this->y,
- $this->speed
- );
- }
- }
|