Completed
Push — master ( 54d5e5...512ec2 )
by Kevin
04:24 queued 02:09
created

ByText   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

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
8
class ByText extends AbstractInteraction
9
{
10
11
    const ACTION = 'Click\ByText';
12
13
    use ByTextTrait;
14
15
    public function execute($param)
16
    {
17
        $element = $this->getElement($this->webDriver, $param);
18
        $element->click();
19
    }
20
21
}
22