Tests/Features/Context/MinkContext.php 1 location
|
@@ 103-109 (lines=7) @@
|
100 |
|
/** @see http://stackoverflow.com/questions/3655549/xpath-containstext-some-string-doesnt-work-when-used-with-node-with-more/3655588#3655588 */ |
101 |
|
$item = $element->find('xpath', '//*[text()[contains(., "'.$value.'")]]'); |
102 |
|
|
103 |
|
if ($item) { |
104 |
|
return $item; |
105 |
|
} else { |
106 |
|
$this->getSession()->wait(100); |
107 |
|
|
108 |
|
return $this->findOrRetry($element, $value, $timeout - 100); |
109 |
|
} |
110 |
|
} |
111 |
|
} |
112 |
|
|
Tests/Features/Context/VictoireContext.php 1 location
|
@@ 622-628 (lines=7) @@
|
619 |
|
|
620 |
|
$item = $element->$method($selectorType, $value); |
621 |
|
|
622 |
|
if ($item) { |
623 |
|
return $item; |
624 |
|
} else { |
625 |
|
$this->getSession()->wait(100); |
626 |
|
|
627 |
|
return $this->findOrRetry($element, $selectorType, $value, $timeout - 100); |
628 |
|
} |
629 |
|
} |
630 |
|
|
631 |
|
/** |