Exemplo n.º 1
0
 public function __construct(WebDriver $driver, $source, $x_offset, $y_offset)
 {
     parent::__construct($driver);
     $this->action->addAction(new WebDriverClickAndHoldAction($this->mouse, $source));
     $this->action->addAction(new WaitAction(1));
     $this->action->addAction(new WebDriverMoveToOffsetAction($this->mouse, null, $x_offset, $y_offset));
     $this->action->addAction(new WaitAction(1));
     $this->action->addAction(new WebDriverButtonReleaseAction($this->mouse, null));
     $this->action->addAction(new WaitAction(1));
 }
Exemplo n.º 2
0
 public function __construct(WebDriver $driver)
 {
     parent::__construct($driver);
     $this->touchScreen = $driver->getTouch();
 }