@@ 284-290 (lines=7) @@ | ||
281 | /** |
|
282 | * @Then /^(?:|I )should see (?P<count>\d+) "(?P<element>[^"]*)" in the (?P<index>\d+)(?:st|nd|rd|th) "(?P<parent>[^"]*)"$/ |
|
283 | */ |
|
284 | public function iShouldSeeNElementInTheNthParent($count, $element, $index, $parent) |
|
285 | { |
|
286 | $actual = $this->countElements($element, $index, $parent); |
|
287 | if ($actual !== $count) { |
|
288 | throw new \Exception("$actual occurrences of the '$element' element in '$parent' found"); |
|
289 | } |
|
290 | } |
|
291 | ||
292 | /** |
|
293 | * @Then (I )should see less than :count :element in the :index :parent |
|
@@ 295-301 (lines=7) @@ | ||
292 | /** |
|
293 | * @Then (I )should see less than :count :element in the :index :parent |
|
294 | */ |
|
295 | public function iShouldSeeLessThanNElementInTheNthParent($count, $element, $index, $parent) |
|
296 | { |
|
297 | $actual = $this->countElements($element, $index, $parent); |
|
298 | if ($actual > $count) { |
|
299 | throw new \Exception("$actual occurrences of the '$element' element in '$parent' found"); |
|
300 | } |
|
301 | } |
|
302 | ||
303 | /** |
|
304 | * @Then (I )should see more than :count :element in the :index :parent |
|
@@ 306-312 (lines=7) @@ | ||
303 | /** |
|
304 | * @Then (I )should see more than :count :element in the :index :parent |
|
305 | */ |
|
306 | public function iShouldSeeMoreThanNElementInTheNthParent($count, $element, $index, $parent) |
|
307 | { |
|
308 | $actual = $this->countElements($element, $index, $parent); |
|
309 | if ($actual < $count) { |
|
310 | throw new \Exception("$actual occurrences of the '$element' element in '$parent' found"); |
|
311 | } |
|
312 | } |
|
313 | ||
314 | /** |
|
315 | * Checks, that element with given CSS is enabled |