Example usage for org.openqa.selenium By name

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

Introduction

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

Prototype

public static By name(String name) 

Source Link

Usage

From source file:com.hotwire.selenium.tools.c3.riskManagement.C3CarTransactionsForReviewPage.java

License:Open Source License

public void selectNextTransactionsForReview(Integer count) {
    if (count != 0) {
        count += 3;//from   ww  w .  j a  v a  2 s .  com
    }
    for (int i = 3; i < count; i++) {
        checkBox(By.xpath("//tr[" + i + "]//input[@name [contains(., 'passOnReview')]]"));
    }
    findOne(By.name("updateButton"), DEFAULT_WAIT).click();
}

From source file:com.hotwire.selenium.tools.c3.riskManagement.C3ClearOldTransactionsSearchForm.java

License:Open Source License

public C3ClearOldTransactionsSearchForm(WebDriver webDriver) {
    super(webDriver, By.name("clearOldTransactionsButton"));
}

From source file:com.hotwire.selenium.tools.c3.riskManagement.C3ClearOldTransactionsSearchForm.java

License:Open Source License

public void clickClearOldTransactionButton() {
    findOne(By.name("clearOldTransactionsButton"), DEFAULT_WAIT).click();
}

From source file:com.hotwire.selenium.tools.c3.riskManagement.C3FraudWatchListSearchResults.java

License:Open Source License

public C3FraudWatchListSearchResults(WebDriver webDriver) {
    super(webDriver, By.name("idsToDeactivate"));
}

From source file:com.hotwire.selenium.tools.c3.riskManagement.C3FraudWatchListSearchResults.java

License:Open Source License

public C3FraudWatchListSearchResults deactivateAccount() {
    List<WebElement> chkboxes = findMany(By.name("idsToDeactivate"));
    for (int i = 0; i <= chkboxes.size(); i++) {
        if (chkboxes.get(i).isEnabled()) {
            chkboxes.get(i).click();/*from  w w  w. j  a  va2  s  . c  o m*/
            break;
        }
    }
    findOne(By.name("deactivate"), DEFAULT_WAIT).click();
    return this;
}

From source file:com.hotwire.selenium.tools.c3.workflow.C3WorkflowEntryPage.java

License:Open Source License

public void createWorkflowEntry() {
    String title = "test" + System.currentTimeMillis();

    selectValue(".inputOn", "Bug Report", DEFAULT_WAIT);
    selectValue(".inputOn", "Other", DEFAULT_WAIT); // By.name("selectedFootprintTopic")
    findOne(By.name("selectedInquiry.selectedCategoryQnAs[1].answer"), DEFAULT_WAIT).sendKeys(title);
    findOne(By.name("selectedInquiry.selectedCategoryQnAs[2].answer"), DEFAULT_WAIT).sendKeys("Watch list");
    findOne(By.name("selectedInquiry.selectedCategoryQnAs[4].answer"), DEFAULT_WAIT).sendKeys("2 Bug");
    findOne(By.xpath(".//*[@id='note']"), DEFAULT_WAIT).sendKeys("Note " + title);
    //findOne(".formButton", DEFAULT_WAIT).click();
    findOne(By.xpath("//input[@value='submit']"), DEFAULT_WAIT).click();

}

From source file:com.hotwire.selenium.tools.c3.workflow.C3WorkflowForm.java

License:Open Source License

public C3WorkflowForm(WebDriver webdriver) {
    super(webdriver, By.name("footprintsForm"));
}

From source file:com.hotwire.selenium.tools.dmu.DMULoginPage.java

License:Open Source License

public DMULoginPage(WebDriver webdriver) {
    super(webdriver, By.name("loginForm"));
}

From source file:com.hotwire.selenium.tools.dmu.DMUProcedurePage.java

License:Open Source License

public DMUProcedurePage(WebDriver webdriver) {
    super(webdriver, By.name("operationForm"));
}

From source file:com.hotwire.selenium.tools.travelAdvisory.TravelAdvisoryUpdatesPage.java

License:Open Source License

private void setIssueField(String fieldName, String text) {
    final WebElement webElement = findMany(By.name(fieldName)).get(index);
    webElement.clear();//from   www  .  j ava 2 s  .c  om
    webElement.sendKeys(text);
}