Code Duplication    Length = 14-14 lines in 4 locations

lib/Actions/Mousemove/ByCss.php 1 location

@@ 9-22 (lines=14) @@
6
use Magium\Actions\ByCssTrait;
7
use Magium\Actions\ByTextTrait;
8
9
class ByCss extends AbstractInteraction
10
{
11
12
    const ACTION = 'Mousemove\ByCss';
13
14
    use ByCssTrait;
15
16
    public function execute($param)
17
    {
18
        $element = $this->getElement($this->webDriver, $param);
19
        $this->webDriver->getMouse()->mouseMove($element->getCoordinates());
20
    }
21
22
}
23

lib/Actions/Mousemove/ById.php 1 location

@@ 9-22 (lines=14) @@
6
use Magium\Actions\ByIdTrait;
7
use Magium\Actions\ByTextTrait;
8
9
class ById extends AbstractInteraction
10
{
11
12
    const ACTION = 'Mousemove\ById';
13
14
    use ByIdTrait;
15
16
    public function execute($param)
17
    {
18
        $element = $this->getElement($this->webDriver, $param);
19
        $this->webDriver->getMouse()->mouseMove($element->getCoordinates());
20
    }
21
22
}
23

lib/Actions/Mousemove/ByText.php 1 location

@@ 8-21 (lines=14) @@
5
use Magium\Actions\AbstractInteraction;
6
use Magium\Actions\ByTextTrait;
7
8
class ByText extends AbstractInteraction
9
{
10
11
    const ACTION = 'Mousemove\ByText';
12
13
    use ByTextTrait;
14
15
    public function execute($param)
16
    {
17
        $element = $this->getElement($this->webDriver, $param);
18
        $this->webDriver->getMouse()->mouseMove($element->getCoordinates());
19
    }
20
21
}
22

lib/Actions/Mousemove/ByXpath.php 1 location

@@ 9-22 (lines=14) @@
6
use Magium\Actions\ByTextTrait;
7
use Magium\Actions\ByXpathTrait;
8
9
class ByXpath extends AbstractInteraction
10
{
11
12
    const ACTION = 'Mousemove\ByXpath';
13
14
    use ByXpathTrait;
15
16
    public function execute($param)
17
    {
18
        $element = $this->getElement($this->webDriver, $param);
19
        $this->webDriver->getMouse()->mouseMove($element->getCoordinates());
20
    }
21
22
}
23