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();
}
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++;
}
}
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);
}
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;
}
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();
}
Aggregations