Passed
Pull Request — master (#37)
by
unknown
04:18
created

PagantisWebDriver   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1
1
<?php
2
3
namespace Pagantis\Pagantis\Test;
4
5
use Facebook\WebDriver\Remote\RemoteWebDriver;
6
use Facebook\WebDriver\WebDriverWait;
7
8
/**
9
 * Class PagantisWebDriver
10
 *
11
 * @package Test
12
 */
13
class PagantisWebDriver extends RemoteWebDriver
14
{
15
    /**
16
     * Override method to increase the default timeouts
17
     *
18
     * @param int $timeout_in_second
19
     * @param int $interval_in_millisecond
20
     *
21
     * @return WebDriverWait
22
     */
23
    public function wait($timeout_in_second = 120, $interval_in_millisecond = 1000)
24
    {
25
        return new WebDriverWait(
26
            $this,
27
            $timeout_in_second,
28
            $interval_in_millisecond
29
        );
30
    }
31
}
32