public function dragAndDrop($source, $target)
    {
        $snodes = $this->matchFirstOrFail($this->getBaseElement(), $source);
        $tnodes = $this->matchFirstOrFail($this->getBaseElement(), $target);

        $action = new WebDriverActions($this->webDriver);
        $action->dragAndDrop($snodes, $tnodes)->perform();
    }
public function dragAndDrop($source, $target)
    {
        $snodes = $this->matchFirstOrFail($this->getBaseElement(), $source);
        $tnodes = $this->matchFirstOrFail($this->getBaseElement(), $target);

        $action = new WebDriverActions($this->webDriver);
        $action->dragAndDrop($snodes, $tnodes)->perform();
    }
public function dragAndDrop ( $ source , $ target ) { $ snodes = $ this -> matchFirstOrFail ( $ this -> getBaseElement ( ) , $ source ) ; $ tnodes = $ this -> matchFirstOrFail ( $ this -> getBaseElement ( ) , $ target ) ; $ action = new WebDriverActions ( $ this -> webDriver ) ; $ action -> dragAndDrop ( $ snodes , $ tnodes ) -> perform ( ) ; }
Performs a simple mouse drag-and-drop operation.

``` php
<?php
$I->dragAndDrop('#drag', '#drop');
?>
```

@param string $source (CSS ID or XPath)
@param string $target (CSS ID or XPath)
Performs a simple mouse drag - and - drop operation .