Skip to content

Commit 4404f38

Browse files
puneet0191javigomez
authored andcommitted
Adding CheckAllResult Function
closes #31
1 parent a8d7cad commit 4404f38

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/JoomlaBrowser.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,4 +425,18 @@ public function checkExistenceOf($name)
425425
$I->seeElement(['xpath' => "//form[@id='adminForm']/div/table/tbody"]);
426426
$I->see($name,['xpath' => "//form[@id='adminForm']/div/table/tbody"]);
427427
}
428+
429+
/**
430+
* Function to select all the item in the Search results in Administrator List
431+
*
432+
* Note: We recommend use of checkAllResults function only after searchForItem to be sure you are selecting only the desired result set
433+
*
434+
* @return void
435+
*/
436+
public function checkAllResults()
437+
{
438+
$I = $this;
439+
$this->debug("Selecting Checkall button");
440+
$I->click(['xpath' => "//thead//input[@name='checkall-toggle' or @name='toggle']"]);
441+
}
428442
}

0 commit comments

Comments
 (0)