Example usage for org.openqa.selenium By className

List of usage examples for org.openqa.selenium By className

Introduction

In this page you can find the example usage for org.openqa.selenium By className.

Prototype

public static By className(String className) 

Source Link

Document

Find elements based on the value of the "class" attribute.

Usage

From source file:com.hotwire.selenium.tools.c3.breadCrumbs.C3BreadcrumbsFragment.java

License:Open Source License

public C3BreadcrumbsFragment(WebDriver webdriver) {
    super(webdriver, By.className("breadcrumbbar"));
}

From source file:com.hotwire.selenium.tools.c3.C3IndexPage.java

License:Open Source License

public C3IndexPage(WebDriver webDriver) {
    super(webDriver, By.className("homePageContainer"));
    waitElementStopMoving("ul.searchLinks", EXTRA_WAIT);
}

From source file:com.hotwire.selenium.tools.c3.C3SearchResultPage.java

License:Open Source License

public C3SearchResultPage(WebDriver webDriver) {
    super(webDriver, By.className("displayIterationPadding"));
}

From source file:com.hotwire.selenium.tools.c3.casenotes.C3CaseNotesFrame.java

License:Open Source License

public String clickOnLatestResultUrl() {
    findOne("input.resultsButton").click();
    return waitValueLoaded(By.className("resultsField"), DEFAULT_WAIT).getAttribute("value");
}

From source file:com.hotwire.selenium.tools.c3.casenotes.C3CaseNotesFrame.java

License:Open Source License

public String clickOnLatestDetailsUrl() {
    findOne("input.detailsButton").click();
    return waitValueLoaded(By.className("detailsField"), DEFAULT_WAIT).getAttribute("value");
}

From source file:com.hotwire.selenium.tools.c3.customer.C3CaseHistoryPage.java

License:Open Source License

public C3CaseHistoryPage(WebDriver webdriver) {
    super(webdriver, By.className("caseHistory"));
}

From source file:com.hotwire.selenium.tools.c3.customer.C3CaseHistoryPage.java

License:Open Source License

public WebElement getPrinterFriendlyBtn() {
    return findOne(By.className(PRINTER_FRIENDLY_BTN), DEFAULT_WAIT);
}

From source file:com.hotwire.selenium.tools.c3.customer.C3CaseHistoryPage.java

License:Open Source License

public List<String> getHeadersOfCases() {
    List<String> headersText = new ArrayList<>();
    List<WebElement> headers = findMany(By.className(CASE_HEADER));
    for (WebElement header : headers) {
        headersText.add(header.getText());
    }//from  w ww. j  av a 2  s  . c o m
    return headersText;
}

From source file:com.hotwire.selenium.tools.c3.customer.C3CaseHistoryPage.java

License:Open Source License

public List<String> getDescriptionOfCases() {
    List<String> descriptionText = new ArrayList<>();
    List<WebElement> descriptions = findMany(By.className(CASE_DESCRIPTION));
    for (WebElement description : descriptions) {
        descriptionText.add(description.getText());
    }//from w w w.  j  a  va2  s.co  m
    return descriptionText;
}

From source file:com.hotwire.selenium.tools.c3.customer.C3CreateCustomerPage.java

License:Open Source License

public C3CreateCustomerPage(WebDriver webDriver) {
    super(webDriver, By.className("createCustomerContainer"));
}