コード例 #1
0
 /**
  * Recovers the specified trashcan item if found
  *
  * @param WebDrone @ param String itemName to be recovered
  * @return TrashCanPage
  */
 public static HtmlPage recoverTrashCanItem(WebDrone drone, String itemName) {
   TrashCanItem trashCanItem = getTrashCanItem(drone, itemName);
   return trashCanItem.selectTrashCanAction(TrashCanValues.RECOVER).render();
 }
コード例 #2
0
 /**
  * Deletes the specified trashcan item if found
  *
  * @param driver
  * @param itemName @ param String itemName to be deleted
  * @return TrashCanPage
  */
 public static TrashCanPage deleteTrashCanItem(WebDrone driver, String itemName) {
   TrashCanItem trashCanItem = getTrashCanItem(driver, itemName);
   TrashCanDeleteConfirmationPage trashDeletePage =
       trashCanItem.selectTrashCanAction(TrashCanValues.DELETE).render();
   return trashDeletePage.clickOkButton().render();
 }