Search in sources :

Example 96 with WebElement

use of org.openqa.selenium.WebElement in project selenium-tests by Wikia.

the class VisualEditorOptionsDialog method clickLinkResult.

public void clickLinkResult() {
    wait.forElementVisible(selectedResult);
    WebElement matchingResult = selectedResult.findElement(labelElementBy);
    wait.forElementVisible(matchingResult);
    wait.forElementClickable(matchingResult);
    matchingResult.click();
}
Also used : WebElement(org.openqa.selenium.WebElement)

Example 97 with WebElement

use of org.openqa.selenium.WebElement in project selenium-tests by Wikia.

the class SearchPageObject method verifyPagination.

public void verifyPagination() {
    wait.forElementPresent(paginationContainerBy);
    int i = 1;
    for (WebElement elem : paginationPages) {
        Assertion.assertEquals(elem.getText(), Integer.toString(i));
        i++;
    }
}
Also used : WebElement(org.openqa.selenium.WebElement)

Example 98 with WebElement

use of org.openqa.selenium.WebElement in project selenium-tests by Wikia.

the class SearchPageObject method setSearchTab.

public void setSearchTab(SearchTab tab) {
    WebElement tabElem = driver.findElement(tab.getBy());
    scrollAndClick(tabElem);
}
Also used : WebElement(org.openqa.selenium.WebElement)

Example 99 with WebElement

use of org.openqa.selenium.WebElement in project selenium-tests by Wikia.

the class WikiBasePageObject method getNotifications.

public List<Notification> getNotifications() {
    List<Notification> notificationList = new ArrayList<>();
    for (WebElement notificationElement : notificationElements) {
        Notification notification = new Notification(driver, notificationElement);
        notificationList.add(notification);
    }
    return notificationList;
}
Also used : ArrayList(java.util.ArrayList) WebElement(org.openqa.selenium.WebElement) Notification(com.wikia.webdriver.elements.oasis.components.notifications.Notification)

Example 100 with WebElement

use of org.openqa.selenium.WebElement in project selenium-tests by Wikia.

the class AddPinComponentObject method clickSuggestion.

public void clickSuggestion(int opt) {
    wait.forElementVisible(suggestedOption.get(opt));
    WebElement suggestionSelected = suggestedOption.get(opt);
    suggestionSelected.click();
}
Also used : WebElement(org.openqa.selenium.WebElement)

Aggregations

WebElement (org.openqa.selenium.WebElement)520 Test (org.junit.Test)96 WebDriver (org.openqa.selenium.WebDriver)85 PublicAtsApi (com.axway.ats.common.PublicAtsApi)57 Actions (org.openqa.selenium.interactions.Actions)55 FirefoxDriver (org.openqa.selenium.firefox.FirefoxDriver)46 WebDriverWait (org.openqa.selenium.support.ui.WebDriverWait)40 By (org.openqa.selenium.By)36 URL (java.net.URL)35 RunAsClient (org.jboss.arquillian.container.test.api.RunAsClient)34 RealHtmlElementState (com.axway.ats.uiengine.utilities.realbrowser.html.RealHtmlElementState)30 JavascriptExecutor (org.openqa.selenium.JavascriptExecutor)21 NoSuchElementException (org.openqa.selenium.NoSuchElementException)21 HiddenHtmlElementState (com.axway.ats.uiengine.utilities.hiddenbrowser.HiddenHtmlElementState)19 ArrayList (java.util.ArrayList)18 SeleniumOperationException (com.axway.ats.uiengine.exceptions.SeleniumOperationException)13 Select (org.openqa.selenium.support.ui.Select)13 TimeoutException (org.openqa.selenium.TimeoutException)12 VisualEditorPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.visualeditor.VisualEditorPageObject)11 List (java.util.List)10