src/Concerns/InteractsWithElements.php
public function dragOffset($selector, $x = 0, $y = 0)
    {
        (new WebDriverActions($this->driver))->dragAndDropBy(
            $this->resolver->findOrFail($selector), $x, $y
        )->perform();

        return $this;
    }
public function dragOffset($selector, $x = 0, $y = 0)
    {
        (new WebDriverActions($this->driver))->dragAndDropBy(
            $this->resolver->findOrFail($selector), $x, $y
        )->perform();

        return $this;
    }
public function dragOffset ( $ selector , $ x = 0 , $ y = 0 ) { ( new WebDriverActions ( $ this -> driver ) ) -> dragAndDropBy ( $ this -> resolver -> findOrFail ( $ selector ) , $ x , $ y ) -> perform ( ) ; return $ this ; }
Drag an element by the given offset.

@param  string  $selector
@param  int  $x
@param  int  $y
@return $this
Drag an element by the given offset .