Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Siteadmin

Wiktor Szczepaniak edited this page Aug 30, 2016 · 4 revisions

Siteadmin

Introduction

Bobcat provides classes that allows to perform actions on AEM Classic Site Admin Page.

Description

Site Admin Description

Main elements:

  • SiteAdminPage is the main element and represents Site Admin Page. It can be injected into test or test steps. This class contains method and more detailed objects for site adminstration
  • SideAdminGrid (marked by blue color) - fragment of page with action bar and list of pages existing on selected level
  • SiteAdminActionBar (marked by red color) - included in SideAdminGrid - actions available from action bar
  • SiteAdminGridRow (marked by black color) - included in SideAdminGrid - single row

For use with AEM 6.1 SP1 we have to use SiteadminPage.java from package com.cognifide.qa.bb.aem.touch.siteadmin.aem61. For use with AEM 6.2 we have to use SiteadminPage.java from package com.cognifide.qa.bb.aem.touch.siteadmin.aem62.

Usage Examples

For all available methods please look into javadoc

Opening Site Admin Page in selected level
siteAdminPage.open("/content/geometrixx-media/en/entertainment");
Creating new page
siteAdminPage.createNewPage("Page Name", "Page Template Name");
Deleting page
siteAdminPage.deletePage("Page Name");
Deleting whole site
siteAdminPage.clickDeleteAndConfirm("Site Title");
siteAdminPage.waitForConfirmationWindow();
siteAdminPage.clickYesOnConfirmationWindow();
Select page in grid
siteAdminPage.getGrid().selectPageByTitle("Page Title");
Creating a new site
List<String> languages = Arrays.asList("English (United Kingdom)", "Japanese");
List<String> chapters = Arrays.asList("Products (products)", "Support (support)");
List<String> rollOutConfigs = Arrays.asList("Push on modify", "Promote Launch");
CreateSiteWindow createSiteWindow = page.openCreateSiteWindow();
createSiteWindow.selectBlueprint("Site Title", "", "Geometrixx Site");
createSiteWindow.next();
createSiteWindow.selectLanguages(languages);
createSiteWindow.next();
createSiteWindow.selectChapters(chapters);
createSiteWindow.next();
createSiteWindow.fillLiveCopy("Administrator", false, rollOutConfigs);
createSiteWindow.next();
createSiteWindow.createSite();
page.getGrid().waitForLoaderNotPresent();

There is working example of activating and deactivating page: Site Admin Test Example

Getting started with Bobcat

  1. Getting started

AEM Related Features

  1. Authoring tutorial - Classic
  1. AEM Classic Authoring Advanced usage
  1. Authoring tutorial - Touch UI
Clone this wiki locally