Example usage for org.openqa.selenium WebElement sendKeys

List of usage examples for org.openqa.selenium WebElement sendKeys

Introduction

In this page you can find the example usage for org.openqa.selenium WebElement sendKeys.

Prototype

void sendKeys(CharSequence... keysToSend);

Source Link

Document

Use this method to simulate typing into an element, which may set its value.

Usage

From source file:cls.ui.model.selenium.carDealerManage.BasicInfoPage.java

public void enterRemark(String remark) throws Throwable {
    WebElement remarkText = driver.findElement(
            By.xpath("/html/body/div[1]/div[1]/div[2]/div/div/form/div[1]/div[4]/div/div/textarea"));
    remarkText.clear();//from  ww  w  .  j  av  a 2  s  .c  o  m
    remarkText.sendKeys(remark);
}

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

public void enterLicenseDate(String licenseDate) {
    WebElement licenseDateInput = driver.findElement(By.name("licenseDate"));
    licenseDateInput.clear();/*w ww.j a  v  a2 s .com*/
    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();//from ww w.  ja  v a2s  .c  o  m
    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();/*from   w  w  w  . j  a v  a  2s. co m*/
    carColourInput.sendKeys(carColour);
}

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

public void enterCarIdentifyNum(String carIdentifyNum) {
    WebElement carIdentifyNumInput = driver.findElement(By.name("carIdentifyNum"));
    carIdentifyNumInput.clear();//from   w  ww.j  a va  2 s.  c om
    carIdentifyNumInput.sendKeys(carIdentifyNum);
}

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

public void enterCommercialInsuranceDate(String commercialInsuranceDate) {
    WebElement commercialInsuranceDateInput = driver.findElement(By.name("commercialInsuranceExpiredDate"));
    commercialInsuranceDateInput.clear();
    commercialInsuranceDateInput.sendKeys(commercialInsuranceDate);
    commercialInsuranceDateInput.click();
}

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

public void enterCompulsoryInsuranceDate(String compulsoryInsuranceDate) {
    WebElement compulsoryInsuranceDateInput = driver
            .findElement(By.name("trafficCompulsoryInsuranceExpiredDate"));
    compulsoryInsuranceDateInput.clear();
    compulsoryInsuranceDateInput.sendKeys(compulsoryInsuranceDate);
    compulsoryInsuranceDateInput.click();
}

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

public void enterNewCarPrice(String newCarPrice) {
    WebElement newCarPriceInput = driver.findElement(By.name("newCarPrice"));
    newCarPriceInput.clear();/*w  w  w .jav  a  2 s.co m*/
    newCarPriceInput.sendKeys(newCarPrice);
}

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

public void enterSecondHandCarPrice(String secondHandCarPrice) {
    WebElement secondHandCarPriceInput = driver.findElement(By.name("secondHandCarPrice"));
    secondHandCarPriceInput.clear();/*  ww w.  ja  v a  2 s. c o m*/
    secondHandCarPriceInput.sendKeys(secondHandCarPrice);
}

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

public void enterComment(String comment) {
    WebElement commentInput = driver.findElement(By.name("memo"));
    commentInput.clear();/*from w  w w.j  av  a2 s.c o  m*/
    commentInput.sendKeys(comment);
}