-
Notifications
You must be signed in to change notification settings - Fork 40
Sites ChildPageRow
Class can be used to do operations on the pages list element representing a page (row on a list).
To get an instance of ChildPageRow class from the currently open scope, we would have to use SiteadminPage.getPageFromList(String title)
method.
Example code below:
@Test
public void shouldGetChildPageRowInstance() {
ChildPageRow childPageRow = siteadminPage.getPageFromList("examplePage");
}
To get title of page, we should use getTitle()
method.
Example code :
@Test
public void shouldGetPagesTitle() {
String title = siteadminPage.getPageFromList("examplePage").getTitle();
}
To get href of a page in the list, we should use getHref()
method.
Example code :
@Test
public void shouldGetPagesHref() {
String pageLink = siteadminPage.getPageFromList("examplePage").getHref();
}
Back to Sites management
To select page we should use select()
method.
Example code :
@Test
public void shouldSelectPage() {
siteadminPage.getPageFromList("examplePage").select();
}
To click the page row on the list we should use click()
method.
Example code :
@Test
public void shouldClickPage() {
siteadminPage.getPageFromList("examplePage").click();
}
It is a class that provides access to page's content modification information :
- User name of author of changes -
getModifiedBy()
method - Date of modification -
getWhenModified()
method
To get instance we need a ChildPageRow
instance and execute it's getModificationInfo()
method.
Example code :
@Test
public void shouldGetPageModificationInformation() {
ChildPageRow childPageRow = siteadminPage.getPageFromList("examplePage");
PageModificationInfo modificationInfo = childPageRow.getModificationInfo();
String author = modificationInfo.getModifiedBy();
String dateOfChanges = modificationInfo.getWhenModified();
}
It is a class that provides access to page's activation information :
- Replication date -
getREplicationActionDate()
method - Replication author -
getReplicationActionUser()
method - ActivationStatus - Enum containing PUBLISHED, NOT_PUBLISHED, SCHEDULED values
To get instance we need a ChildPageRow
instance and execute it's getPageActivationStatus()
method.
Example code :
@Test
public void shouldGetPageActivationInformation() {
ChildPageRow childPageRow = siteadminPage.getPageFromList("examplePage");
PageActivationStatus pageActivationStatus = childPageRow.getPageActivationStatus();
String author = pageActivationStatus.getReplicationActionUser();
String dateOfChanges = pageActivationStatus.getReplicationActionDate();
ActivationStatus status = pageActivationStatus.getActivationStatus();
}
- Configuring Bobcat
- Selenium enhancements
- Cucumber enhancements
- Traffic analyzer
- Email support
- Reporting
- Cloud integration
- Mobile integration
- Executing tests on different environments
- Working with multiple threads
- Tips and tricks
- Authoring tutorial - Classic
- AEM Classic Authoring Advanced usage
- Siteadmin
- Sidekick
- Aem Component
- Working with author pages
- Working with Publish pages
- Advanced component interactions
- Working with Context Menu
- Using Aem Content Tree
- Aem Content Finder
- Storing component configurations
- Working with packages
- Jcr Support
- Authoring tutorial - Touch UI
- Adding and editing a component
- Sites management tutorial