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