Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Checks check box for specified advocate.
- *
- * @param advocateName
- *
- * @return AdvocatesPage object
- */
- public AdvocatesPage checkNeededAdvocateCheckbox(String advocateName){
- logger.debug("Checks checkbox for advocate with following name: " + advocateName);
- WebElement account, checkbox;
- account= common.findElementInList(listOfAccounts, advocateName);
- checkbox = account.findElement(By.xpath("ancestor::tr//input"));
- common.check(checkbox);
- return new AdvocatesPage(driver);
- }
Advertisement
Add Comment
Please, Sign In to add comment