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

ById::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Magium\Actions\Click;
4
5
use Magium\Actions\AbstractInteraction;
6
use Magium\Actions\ByIdTrait;
7
use Magium\Actions\ByTextTrait;
8
9
class ById extends AbstractInteraction
10
{
11
12
    const ACTION = 'Click\ById';
13
14
    use ByIdTrait;
15
16
    public function execute($param)
17
    {
18
        $element = $this->getElement($this->webDriver, $param);
19
        $element->click();
20
    }
21
22
}
23