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:cls.ui.model.selenium.loanreview.BusinessEnteringPage.java

public void selectIsAgency(String isAgencyString) throws Throwable {
    Thread.sleep(1000);/*from w w w.j  a  v  a  2  s  .co m*/
    WebElement isAgency = driver.findElement(By.name("isAgency"));
    Select mySelect = new Select(isAgency);
    mySelect.selectByVisibleText(isAgencyString);
}

From source file:cls.ui.model.selenium.loanreview.BusinessEnteringPage.java

public void selectEmergencyRelationship(String emergencyRelationshipString) throws Throwable {
    Thread.sleep(1000);/* www  .j  av a 2s . com*/
    WebElement emergencyRelationship = driver.findElement(By.name("relationship"));
    Select mySelect = new Select(emergencyRelationship);
    mySelect.selectByVisibleText(emergencyRelationshipString);
}

From source file:cls.ui.model.selenium.loanreview.BusinessEnteringPage.java

public void selectIsCarUser(String isCarUserString) throws Throwable {
    Thread.sleep(2000);/*from www  . j  ava  2  s  .c om*/
    WebElement isCarUser = driver.findElement(By.name("isCarUser"));
    Select mySelect = new Select(isCarUser);
    mySelect.selectByVisibleText(isCarUserString);
}

From source file:cls.ui.model.selenium.loanreview.BusinessEnteringPage.java

public void selectIsPublicLicense(String isPublicLicenseString) throws Throwable {
    Thread.sleep(2000);//  w w  w  .  j  ava  2 s .  com
    WebElement isPublicLicense = driver.findElement(By.name("isPublicLicense"));
    Select mySelect = new Select(isPublicLicense);
    mySelect.selectByVisibleText(isPublicLicenseString);
}

From source file:cls.ui.model.selenium.loanreview.BusinessEnteringPage.java

public void selectPaymentMethod(String paymentMethodString) throws Throwable {
    Thread.sleep(2000);/*  w  w w . j  a  v a 2s .c o m*/
    WebElement paymentMethod = driver.findElement(By.name("paymentMethod"));
    Select mySelect = new Select(paymentMethod);
    mySelect.selectByVisibleText(paymentMethodString);
}

From source file:cls.ui.model.selenium.loanreview.BusinessEnteringPage.java

public void selectDeliveryMethod(String deliveryMethodString) throws Throwable {
    Thread.sleep(2000);//from ww w .  j a v a 2 s. co m
    WebElement deliveryMethod = driver.findElement(By.name("deliveryMethod"));
    Select mySelect = new Select(deliveryMethod);
    mySelect.selectByVisibleText(deliveryMethodString);
}

From source file:cls.ui.model.selenium.secondhandcarmanagement.StartAssessmentPage.java

public void setAssessmentCode() {
    WebElement codeInput = driver.findElement(By.name("estimateNum"));
    assessmentCode = codeInput.getAttribute("value");
}

From source file:cls.ui.model.selenium.secondhandcarmanagement.StartAssessmentPage.java

public void enterLicenseDate(String licenseDate) {
    WebElement licenseDateInput = driver.findElement(By.name("licenseDate"));
    licenseDateInput.clear();/*from  ww w .j av  a  2s.  co  m*/
    licenseDateInput.sendKeys(licenseDate);
    licenseDateInput.click();
}

From source file:cls.ui.model.selenium.secondhandcarmanagement.StartAssessmentPage.java

public void entreKilometres(String kilometres) {
    WebElement kilometresInput = driver.findElement(By.name("kilometres"));
    kilometresInput.clear();/* www.  j a v  a2 s . c  om*/
    kilometresInput.sendKeys(kilometres);
}

From source file:cls.ui.model.selenium.secondhandcarmanagement.StartAssessmentPage.java

public void enterCarColour(String carColour) {
    WebElement carColourInput = driver.findElement(By.name("carColour"));
    carColourInput.clear();/*w  w  w  .  j ava 2  s. c o  m*/
    carColourInput.sendKeys(carColour);
}