Search in sources :

Example 11 with AutoCompleteField

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);
}
Also used : AutoCompleteField(com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField)

Example 12 with AutoCompleteField

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);
}
Also used : AutoCompleteField(com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField)

Example 13 with AutoCompleteField

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);
}
Also used : AutoCompleteField(com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField)

Example 14 with AutoCompleteField

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);
}
Also used : AutoCompleteField(com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField)

Example 15 with AutoCompleteField

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"));
}
Also used : AutoCompleteField(com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField) ElementsCollection(com.codeborne.selenide.ElementsCollection) PropertiesPage(com.adobe.cq.testing.selenium.pageobject.cq.sites.PropertiesPage) PermissionsTab(com.adobe.cq.testing.selenium.pagewidgets.cq.tabs.PermissionsTab)

Aggregations

AutoCompleteField (com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField)16 PropertiesPage (com.adobe.cq.testing.selenium.pageobject.cq.sites.PropertiesPage)2 PermissionsTab (com.adobe.cq.testing.selenium.pagewidgets.cq.tabs.PermissionsTab)2 ElementsCollection (com.codeborne.selenide.ElementsCollection)2 WebDriver (org.openqa.selenium.WebDriver)1 WebDriverWait (org.openqa.selenium.support.ui.WebDriverWait)1