@@ -402,7 +402,7 @@ public function assertRegionLinkFollow($link, $region)
402402 }
403403
404404 /**
405- * Checks, if a button with id|name|title|alt|value exists or not and pressess the same
405+ * Checks if a button with id|name|title|alt|value exists or not and presses the same
406406 *
407407 * @Given I press :button in the :region( region)
408408 *
@@ -442,6 +442,44 @@ public function regionFillField($field, $value, $region)
442442 $ regionObj ->fillField ($ field , $ value );
443443 }
444444
445+ /**
446+ * Checks if a checkbox with id|name|title|alt|value exists or not and checks the same
447+ *
448+ * @Given I check :locator in the :region( region)
449+ *
450+ * @param $locator
451+ * string The id|name|title|alt|value of the checkbox to be checked
452+ * @param $region
453+ * string The region in which the checkbox should be checked
454+ *
455+ * @throws \Exception
456+ * If region or checkbox within it cannot be found.
457+ */
458+ public function assertRegionCheckBox ($ locator , $ region )
459+ {
460+ $ regionObj = $ this ->getRegion ($ region );
461+ $ regionObj ->checkField ($ locator );
462+ }
463+
464+ /**
465+ * Checks if a checkbox with id|name|title|alt|value exists or not and unchecks the same
466+ *
467+ * @Given I uncheck :checkbox in the :region( region)
468+ *
469+ * @param $locator
470+ * string The id|name|title|alt|value of the checkbox to be unchecked
471+ * @param $region
472+ * string The region in which the checkbox should be unchecked
473+ *
474+ * @throws \Exception
475+ * If region or checkbox within it cannot be found.
476+ */
477+ public function assertRegionUncheckBox ($ locator , $ region )
478+ {
479+ $ regionObj = $ this ->getRegion ($ region );
480+ $ regionObj ->uncheckField ($ locator );
481+ }
482+
445483 /**
446484 * Find a heading in a specific region.
447485 *
0 commit comments