From 20d1103840138af91f4b19a4314c7c5fbdb685a5 Mon Sep 17 00:00:00 2001 From: puneet0191 Date: Thu, 16 Jul 2015 21:08:54 +0530 Subject: [PATCH] Adding CheckAllResult Function --- src/JoomlaBrowser.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/JoomlaBrowser.php b/src/JoomlaBrowser.php index 0b7a2a8..a72beb4 100644 --- a/src/JoomlaBrowser.php +++ b/src/JoomlaBrowser.php @@ -425,4 +425,18 @@ public function checkExistenceOf($name) $I->seeElement(['xpath' => "//form[@id='adminForm']/div/table/tbody"]); $I->see($name,['xpath' => "//form[@id='adminForm']/div/table/tbody"]); } + + /** + * Function to select all the item in the Search results in Administrator List + * + * Note: We recommend use of checkAllResult function only after searchForItem to be sure you are selecting only the desired result set + * + * @return void + */ + public function checkAllResult() + { + $I = $this; + $this->debug("Selecting Checkall button"); + $I->click(['xpath' => "//thead//input[@name='checkall-toggle' or @name='toggle']"]); + } }