updated-packages
This commit is contained in:
42
vendor/php-webdriver/webdriver/lib/Interactions/Touch/WebDriverTouchAction.php
vendored
Normal file
42
vendor/php-webdriver/webdriver/lib/Interactions/Touch/WebDriverTouchAction.php
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace Facebook\WebDriver\Interactions\Touch;
|
||||
|
||||
use Facebook\WebDriver\Interactions\Internal\WebDriverCoordinates;
|
||||
use Facebook\WebDriver\Internal\WebDriverLocatable;
|
||||
|
||||
/**
|
||||
* Base class for all touch-related actions.
|
||||
*/
|
||||
abstract class WebDriverTouchAction
|
||||
{
|
||||
/**
|
||||
* @var WebDriverTouchScreen
|
||||
*/
|
||||
protected $touchScreen;
|
||||
/**
|
||||
* @var WebDriverLocatable
|
||||
*/
|
||||
protected $locationProvider;
|
||||
|
||||
/**
|
||||
* @param WebDriverTouchScreen $touch_screen
|
||||
* @param WebDriverLocatable $location_provider
|
||||
*/
|
||||
public function __construct(
|
||||
WebDriverTouchScreen $touch_screen,
|
||||
WebDriverLocatable $location_provider = null
|
||||
) {
|
||||
$this->touchScreen = $touch_screen;
|
||||
$this->locationProvider = $location_provider;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return null|WebDriverCoordinates
|
||||
*/
|
||||
protected function getActionLocation()
|
||||
{
|
||||
return $this->locationProvider !== null
|
||||
? $this->locationProvider->getCoordinates() : null;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user