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"); }
/** * @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; }
public void tagServer(ServerMap server, Tag tag) { storageSahiTasks.selectPage(server.getResourceLocation()); AssignTagDialog dialog = openAssignTagDialog(server); dialog.assignTags(tag); }