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
|
@@ 529-535 (lines=7) @@
|
| 526 |
|
|
| 527 |
|
$item = $element->find($selectorType, $value); |
| 528 |
|
|
| 529 |
|
if ($item) { |
| 530 |
|
return $item; |
| 531 |
|
} else { |
| 532 |
|
$this->getSession()->wait(100); |
| 533 |
|
|
| 534 |
|
return $this->findOrRetry($element, $selectorType, $value, $timeout - 100); |
| 535 |
|
} |
| 536 |
|
} |
| 537 |
|
|
| 538 |
|
/** |