use of com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class ListEditDialog method setParentPage.
public void setParentPage(String path) {
AutoCompleteField autoCompleteField = new AutoCompleteField("css:" + parentPageField);
autoCompleteField.sendKeys(path);
autoCompleteField.suggestions().selectByValue(path);
}
use of com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class Page method setExportTemplate.
public void setExportTemplate(String config) {
AutoCompleteField autoCompleteField = new AutoCompleteField("css:" + exportTemplate);
autoCompleteField.sendKeys(config);
autoCompleteField.suggestions().selectByValue(config);
}
use of com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class Page method setContextHubSegmentsPath.
public void setContextHubSegmentsPath(String path) {
AutoCompleteField autoCompleteField = new AutoCompleteField("css:" + contextHubSegmentsPath);
autoCompleteField.sendKeys(path);
}
use of com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class AssetFinder method setFiltersPath.
public void setFiltersPath(String filter) {
AutoCompleteField autoCompleteField = new AutoCompleteField("css:" + filtersPath);
autoCompleteField.sendKeys(filter);
autoCompleteField.suggestions().selectByValue(filter);
}
use of com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField in project aem-core-wcm-components by Adobe-Marketing-Cloud.
the class PageTests method testEditUserGroupPermissionsPageProperties.
public void testEditUserGroupPermissionsPageProperties() {
// Open properties page
PropertiesPage propertiesPage = new PropertiesPage(testPage);
propertiesPage.open();
// Open Permission tab
PermissionsTab permissions = propertiesPage.clickTab("permissions", PermissionsTab.class);
// Check current CUG list is empty
final ElementsCollection currentCUGList = permissions.cugList();
currentCUGList.shouldHaveSize(0);
// Add CUG permission
final PermissionsTab.EditCUGDialog editCUG = permissions.editCUG();
editCUG.waitVisible();
final AutoCompleteField cugList = editCUG.cugFinder();
cugList.sendKeys("corecomp");
cugList.buttonlist().selectByValue("corecomp");
editCUG.clickPrimary();
// Check the added CUG permission
currentCUGList.shouldHaveSize(1);
currentCUGList.shouldHave(CollectionCondition.texts("CoreComponent Test"));
}
Aggregations