Search in sources :

Example 6 with AutoCompleteField

use of com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField in project aem-core-wcm-components by Adobe-Marketing-Cloud.

the class ImageEditDialog method setLinkURL.

public void setLinkURL(String url) {
    AutoCompleteField autoCompleteField = new AutoCompleteField("css:" + linkUrl);
    autoCompleteField.sendKeys(url);
    $("button[is='coral-buttonlist-item'][value='" + url + "']").click();
}
Also used : AutoCompleteField(com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField)

Example 7 with AutoCompleteField

use of com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField in project aem-core-wcm-components by Adobe-Marketing-Cloud.

the class ImageEditDialog method setAssetFilter.

public void setAssetFilter(String filter) {
    AutoCompleteField autoCompleteField = new AutoCompleteField("css:" + assetFilter);
    autoCompleteField.sendKeys(filter);
    autoCompleteField.suggestions().selectByValue(filter);
}
Also used : AutoCompleteField(com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField)

Example 8 with AutoCompleteField

use of com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField in project aem-core-wcm-components by Adobe-Marketing-Cloud.

the class ButtonEditDialog method setLinkField.

public void setLinkField(String value, String propertyName) {
    String selector = "./" + propertyName;
    AutoCompleteField autoCompleteField = new AutoCompleteField(selector);
    final WebDriver webDriver = WebDriverRunner.getWebDriver();
    new WebDriverWait(webDriver, RequestConstants.TIMEOUT_TIME_SEC).until(ExpectedConditions.elementToBeClickable(By.cssSelector(autoCompleteField.getCssSelector())));
    autoCompleteField.sendKeys(value);
}
Also used : AutoCompleteField(com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField) WebDriver(org.openqa.selenium.WebDriver) WebDriverWait(org.openqa.selenium.support.ui.WebDriverWait)

Example 9 with AutoCompleteField

use of com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField in project aem-core-wcm-components by Adobe-Marketing-Cloud.

the class TeaserEditDialog method setLinkURL.

public void setLinkURL(String url) {
    AutoCompleteField autoCompleteField = new AutoCompleteField("css:" + linkUrl);
    autoCompleteField.sendKeys(url);
    $("button[is='coral-buttonlist-item'][value='" + url + "']").click();
}
Also used : AutoCompleteField(com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField)

Example 10 with AutoCompleteField

use of com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField in project aem-core-wcm-components by Adobe-Marketing-Cloud.

the class LanguageNavigationEditConfig method setNavigationRoot.

public void setNavigationRoot(String value) {
    AutoCompleteField autoCompleteField = new AutoCompleteField("css:" + navigationRoot);
    autoCompleteField.sendKeys(value);
    autoCompleteField.suggestions().selectByValue(value);
}
Also used : AutoCompleteField(com.adobe.cq.testing.selenium.pagewidgets.cq.AutoCompleteField)

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