コード例 #1
0
  public void untagServer(ServerMap server, Tag tag) {
    storageSahiTasks.selectPage(server.getResourceLocation());
    AssignTagDialog dialog = openAssignTagDialog(server);
    dialog.getTagList().openAllTags();

    dialog.uncheckItemInTagList(tag);

    dialog.getOkButton().getElementStub().click();
    Assert.assertTrue(dialog.waitUntilNotVisible(), "assign tag dialog did close");
  }
コード例 #2
0
  /**
   * @param server
   * @return
   * @throws ExecutionException
   */
  private AssignTagDialog openAssignTagDialog(ServerMap server) throws ExecutionException {
    storageSahiTasks.div(server.getServerHostIP()).click(); // Click on Server
    storageSahiTasks.div(server.getServerHostIP()).rightClick(); // Click on Server
    new ContextMenu(storageSahiTasks)
        .getItem("Assign Tags")
        .toElementStub(storageSahiTasks)
        .click();

    AssignTagDialog dialog = new AssignTagDialog(storageSahiTasks);
    dialog.waitUntilVisible();
    return dialog;
  }
コード例 #3
0
 public void tagServer(ServerMap server, Tag tag) {
   storageSahiTasks.selectPage(server.getResourceLocation());
   AssignTagDialog dialog = openAssignTagDialog(server);
   dialog.assignTags(tag);
 }