@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $xpath = sprintf('//a[concat(" ",normalize-space(.)," ") = " %s "]|//*[concat(" ",normalize-space(.)," ") = " %s "]/ancestor::a', $part, $part); |
53 | 53 | $elements = $this->webDriver->findElements(WebDriverBy::xpath($xpath)); |
54 | 54 | $action = false; |
55 | - $this->testCase->assertNotCount(0, $elements, 'Did not find 1 or more elements with the Xpath: ' . $xpath); |
|
55 | + $this->testCase->assertNotCount(0, $elements, 'Did not find 1 or more elements with the Xpath: '.$xpath); |
|
56 | 56 | foreach ($elements as $element) { |
57 | 57 | // Sometimes responsive templates have multiple nav menus. So we iterate over the results to find a visible element. |
58 | 58 | if (!$element->isDisplayed()) { |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $action = true; |
67 | 67 | break; // If either of these options work we don't need to iterate over the remain elements |
68 | 68 | } |
69 | - $this->testCase->assertTrue($action, 'No action was taken. Elements not visible? Xpath: ' . $xpath); |
|
69 | + $this->testCase->assertTrue($action, 'No action was taken. Elements not visible? Xpath: '.$xpath); |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | // We will have already clicked it previously |