Completed
Push — master ( a7506b...5416c6 )
by Dmitry
27:56 queued 12:44
created

CountHelper::countElements()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace hipanel\tests\_support\Helper;
4
5
6
class CountHelper extends \Codeception\Module
7
{
8
    /**
9
     * @param string $cssOrXpath
10
     * @return int
11
     * @throws \Codeception\Exception\ModuleException
12
     */
13
    public function countElements(string $cssOrXpath): int
14
    {
15
        $I = $this->getModule('WebDriver');
16
17
        return count($I->grabMultiple($cssOrXpath));
18
    }
19
}
20