src/Concerns/InteractsWithElements.php
public function drag($from, $to)
    {
        (new WebDriverActions($this->driver))->dragAndDrop(
            $this->resolver->findOrFail($from), $this->resolver->findOrFail($to)
        )->perform();

        return $this;
    }
public function drag($from, $to)
    {
        (new WebDriverActions($this->driver))->dragAndDrop(
            $this->resolver->findOrFail($from), $this->resolver->findOrFail($to)
        )->perform();

        return $this;
    }
public function drag ( $ from , $ to ) { ( new WebDriverActions ( $ this -> driver ) ) -> dragAndDrop ( $ this -> resolver -> findOrFail ( $ from ) , $ this -> resolver -> findOrFail ( $ to ) ) -> perform ( ) ; return $ this ; }
Drag an element to another element using selectors.

@param  string  $from
@param  string  $to
@return $this
Drag an element to another element using selectors .