ByXpath   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 5 1
1
<?php
2
3
namespace Magium\Actions\Click;
4
5
use Magium\Actions\AbstractInteraction;
6
use Magium\Actions\ByTextTrait;
7
use Magium\Actions\ByXpathTrait;
8
9
class ByXpath extends AbstractInteraction
10
{
11
12
    const ACTION = 'Click\ByXpath';
13
14
    use ByXpathTrait;
15
16
    public function execute($param)
17
    {
18
        $element = $this->getElement($this->webDriver, $param);
19
        $element->click();
20
    }
21
22
}
23