You are here

public function NodeElement::dragTo in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/src/Element/NodeElement.php \Behat\Mink\Element\NodeElement::dragTo()

Drags current node onto other node.

Parameters

ElementInterface $destination other node:

File

vendor/behat/mink/src/Element/NodeElement.php, line 287

Class

NodeElement
Page element node.

Namespace

Behat\Mink\Element

Code

public function dragTo(ElementInterface $destination) {
  $this
    ->getDriver()
    ->dragTo($this
    ->getXpath(), $destination
    ->getXpath());
}