Guest User

Untitled

a guest
May 22nd, 2013
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1.         /**
  2.          * Checks check box for specified advocate.
  3.          *
  4.          * @param advocateName
  5.          *
  6.          * @return AdvocatesPage object
  7.          */
  8.         public AdvocatesPage checkNeededAdvocateCheckbox(String advocateName){
  9.             logger.debug("Checks checkbox for advocate with following name: " + advocateName);
  10.             WebElement account, checkbox;
  11.            
  12.             account= common.findElementInList(listOfAccounts, advocateName);
  13.             checkbox = account.findElement(By.xpath("ancestor::tr//input"));
  14.             common.check(checkbox);
  15.             return new AdvocatesPage(driver);
  16.         }
Advertisement
Add Comment
Please, Sign In to add comment