public class AemSidekick extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_BY_GROUP_XPATH |
| Constructor and Description |
|---|
AemSidekick() |
| Modifier and Type | Method and Description |
|---|---|
AemSidekick |
activatePage()
This method can be used to activate the page.
|
AemSidekick |
clickComponentGroupToggle(String groupName)
This method expands/collapses specified component group
|
AemSidekick |
clickCustomOperation(String optionName)
Finds the button associated with the selected custom page operation and clicks it.
|
AemSidekick |
clickModeIcon(ModeIcon iconName)
Finds the button associated with the selected view mode and clicks it.
|
AemSidekick |
clickOperation(PageOperation optionName)
Finds the button associated with the selected page operation and clicks it.
|
AemSidekick |
clickTab(SidekickTab tab)
Finds the icon element associated with the selected tab and clicks it.
|
AemSidekick |
expandFieldsetIfCollapsed(String fieldsetName)
Expands fieldset if collapsed based on fieldset name
|
AemSidekick |
expandSectionIfCollapsed(SidekickSection sidekickSections)
Expands section if collapsed based on provided sidekick section
|
List<String> |
getComponentGroupNames() |
org.openqa.selenium.WebElement |
getCustomOperation(String optionName)
Finds custom operation by name
|
Draggable |
getDraggable(Class<?> component)
Provides a draggable object that represents a component present in the sidekick.
|
org.openqa.selenium.WebElement |
getFieldsetByName(String fieldsetName)
Get fieldset WebElement by it's name
|
SidekickGrid |
getGrid(SidekickSection sidekickSections)
Get grid based on provided sidekick section
|
String |
getLaunchStatusMessage()
Waits for the launch status to be visible in sidekick
|
org.openqa.selenium.WebElement |
getOperation(PageOperation optionName)
Finds operation by name
|
org.openqa.selenium.WebElement |
getSectionByName(String sectionName)
Get section WebElement by it's name
|
boolean |
isCollapsed() |
boolean |
isComponentGroupPresent(String groupName)
This method checks if specified component group is present in Sidekick
|
boolean |
isComponentPresent(String componentName,
String groupName)
This method checks if specified component is present selected group in Sidekick
|
boolean |
isCustomOperationEnabled(String optionName)
Checks if the button associated with the selected custom page operation is enabled
|
boolean |
isPageOperationEnabled(PageOperation optionName)
Checks if the button associated with the selected page operation is enabled
|
AemSidekick |
toggle()
Clicks the toggle button.
|
public static final String COMPONENT_BY_GROUP_XPATH
public AemSidekick clickTab(SidekickTab tab)
tab - sidekick tab namepublic org.openqa.selenium.WebElement getOperation(PageOperation optionName)
optionName - page operation namepublic org.openqa.selenium.WebElement getCustomOperation(String optionName)
optionName - page operation namepublic AemSidekick clickCustomOperation(String optionName)
optionName - page operation namepublic boolean isPageOperationEnabled(PageOperation optionName)
optionName - page operation namepublic boolean isCustomOperationEnabled(String optionName)
optionName - page operation namepublic AemSidekick clickOperation(PageOperation optionName)
optionName - page operation namepublic AemSidekick clickModeIcon(ModeIcon iconName)
iconName - sidekick view modespublic AemSidekick toggle()
public List<String> getComponentGroupNames()
public boolean isComponentGroupPresent(String groupName)
groupName - name of the grouppublic boolean isComponentPresent(String componentName, String groupName)
componentName - component namegroupName - component group namepublic AemSidekick clickComponentGroupToggle(String groupName)
groupName - name of the grouppublic AemSidekick activatePage()
public org.openqa.selenium.WebElement getSectionByName(String sectionName)
sectionName - name of sectionpublic AemSidekick expandSectionIfCollapsed(SidekickSection sidekickSections)
sidekickSections - sections of sidekickpublic org.openqa.selenium.WebElement getFieldsetByName(String fieldsetName)
fieldsetName - name of field setpublic AemSidekick expandFieldsetIfCollapsed(String fieldsetName)
fieldsetName - name of field setpublic String getLaunchStatusMessage()
public SidekickGrid getGrid(SidekickSection sidekickSections)
sidekickSections - sections of sidekickpublic Draggable getDraggable(Class<?> component)
component - the componentpublic boolean isCollapsed()
Copyright © 2016–2018 Cognifide Ltd.. All rights reserved.