@@ -31,7 +31,7 @@ |
||
31 | 31 | { |
32 | 32 | //Wait after redirection |
33 | 33 | $simulatorElementSearch = WebDriverBy::name('email'); |
34 | - $condition = WebDriverExpectedCondition::presenceOfElementLocated($simulatorElementSearch); |
|
34 | + $condition = WebDriverExpectedCondition::presenceOfElementLocated($simulatorElementSearch); |
|
35 | 35 | $this->webDriver->wait()->until($condition); |
36 | 36 | |
37 | 37 | //Fill email |
@@ -36,7 +36,7 @@ |
||
36 | 36 | { |
37 | 37 | //Wait after redirection |
38 | 38 | $simulatorElementSearch = WebDriverBy::name('password'); |
39 | - $condition = WebDriverExpectedCondition::presenceOfElementLocated($simulatorElementSearch); |
|
39 | + $condition = WebDriverExpectedCondition::presenceOfElementLocated($simulatorElementSearch); |
|
40 | 40 | $this->webDriver->wait()->until($condition); |
41 | 41 | |
42 | 42 | //Fill email |
@@ -85,7 +85,7 @@ |
||
85 | 85 | */ |
86 | 86 | public function moveToParent() |
87 | 87 | { |
88 | - $handles=$this->webDriver->getWindowHandles(); |
|
88 | + $handles = $this->webDriver->getWindowHandles(); |
|
89 | 89 | $parent = end($handles); |
90 | 90 | $this->webDriver->switchTo()->window($parent); |
91 | 91 | } |
@@ -28,28 +28,28 @@ |
||
28 | 28 | */ |
29 | 29 | public function run($rejected = false) |
30 | 30 | { |
31 | - try{ |
|
31 | + try { |
|
32 | 32 | //Wait after redirection |
33 | 33 | $simulatorElementSearch = WebDriverBy::id('OrderConfirmation-container'); |
34 | - $condition = WebDriverExpectedCondition::presenceOfElementLocated($simulatorElementSearch); |
|
34 | + $condition = WebDriverExpectedCondition::presenceOfElementLocated($simulatorElementSearch); |
|
35 | 35 | $this->webDriver->wait()->until($condition); |
36 | 36 | } catch (\Exception $e) { |
37 | 37 | $errorElementSearch = WebDriverBy::className('technical-error-container'); |
38 | - $condition = WebDriverExpectedCondition::presenceOfElementLocated($errorElementSearch); |
|
38 | + $condition = WebDriverExpectedCondition::presenceOfElementLocated($errorElementSearch); |
|
39 | 39 | $this->webDriver->wait()->until($condition); |
40 | 40 | $this->assertTrue((bool) $condition, "ERROR ON ".self::STEP); |
41 | 41 | } |
42 | 42 | |
43 | 43 | //Click on popup |
44 | 44 | $buttonElementSearch = WebDriverBy::name('dialogButton'); |
45 | - $condition = WebDriverExpectedCondition::presenceOfElementLocated($buttonElementSearch); |
|
45 | + $condition = WebDriverExpectedCondition::presenceOfElementLocated($buttonElementSearch); |
|
46 | 46 | $this->webDriver->wait()->until($condition); |
47 | 47 | $formContinue = $this->webDriver->findElement($buttonElementSearch)->click(); |
48 | 48 | sleep(3); |
49 | 49 | |
50 | 50 | //Click on confirm |
51 | 51 | $buttonElementSearch = WebDriverBy::className('button-contained-primary'); |
52 | - $condition = WebDriverExpectedCondition::presenceOfElementLocated($buttonElementSearch); |
|
52 | + $condition = WebDriverExpectedCondition::presenceOfElementLocated($buttonElementSearch); |
|
53 | 53 | $this->webDriver->wait()->until($condition); |
54 | 54 | $formContinue = $this->webDriver->findElement($buttonElementSearch)->click(); |
55 | 55 |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | do { |
47 | 47 | self::waitToLoad(); |
48 | 48 | $formStep = self::getFormStep(); |
49 | - if(self::stepIsExcluded($formStep)){ |
|
49 | + if (self::stepIsExcluded($formStep)) { |
|
50 | 50 | $continue = true; |
51 | 51 | continue; |
52 | 52 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | } while ($continue && $maxSteps > 0); |
59 | 59 | |
60 | 60 | if ($maxSteps <= 0) { |
61 | - throw new \Exception('Error while finishing form, step: ' . $formStep); |
|
61 | + throw new \Exception('Error while finishing form, step: '.$formStep); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | return $formStep; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public static function stepIsExcluded($currentStep) |
73 | 73 | { |
74 | - return (substr($currentStep,0,4) === '004.'); |
|
74 | + return (substr($currentStep, 0, 4) === '004.'); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | /** |