List of usage examples for org.openqa.selenium WebElement sendKeys
void sendKeys(CharSequence... keysToSend);
From source file:cls.ui.model.selenium.carDealerManage.BasicInfoPage.java
public void enterContactName(String contactNameString) throws Throwable { WebElement contactName = driver.findElement(By.xpath( "/html/body/div/div[1]/div[1]/div[2]/div[1]/div/div/div/form/fieldset/div[1]/div[2]/div[3]/div[1]/div/input")); contactName.clear();/*w w w. j a v a2 s . c o m*/ contactName.sendKeys(contactNameString); }
From source file:cls.ui.model.selenium.carDealerManage.BasicInfoPage.java
public void enterContactPhone(String contactPhoneString) throws Throwable { WebElement contactPhone = driver.findElement(By.xpath( "/html/body/div/div[1]/div[1]/div[2]/div[1]/div/div/div/form/fieldset/div[1]/div[2]/div[3]/div[2]/div/input")); contactPhone.clear();/* w w w. j a v a2s . c o m*/ contactPhone.sendKeys(contactPhoneString); }
From source file:cls.ui.model.selenium.carDealerManage.BasicInfoPage.java
public void enterDetailAddress(String detailAddress) throws Throwable { WebElement detailAddressInput = driver.findElement(By.xpath( "/html/body/div/div[1]/div[1]/div[2]/div[1]/div/div/div/form/fieldset/div[1]/div[2]/div[5]/div/div/input")); detailAddressInput.clear();// w w w.j a v a 2 s . c o m detailAddressInput.sendKeys(detailAddress); }
From source file:cls.ui.model.selenium.carDealerManage.BasicInfoPage.java
public void enterCardNo(String cardNo) throws Throwable { WebElement cardNoInput = driver.findElement(By.xpath( "/html/body/div/div[1]/div[1]/div[2]/div[1]/div/div/div/form/fieldset/div[1]/div[2]/div[8]/div[3]/div/input")); cardNoInput.clear();/*from ww w.j ava2 s. c o m*/ cardNoInput.sendKeys(cardNo); }
From source file:cls.ui.model.selenium.carDealerManage.BasicInfoPage.java
public void enterEmployeeNum(String employeeNum) throws Throwable { WebElement employeeNumInput = driver.findElement(By.xpath( "/html/body/div/div[1]/div[1]/div[2]/div[1]/div/div/div/form/fieldset/div[1]/div[2]/div[9]/div[1]/div/input")); employeeNumInput.clear();//from ww w.j av a 2 s . c o m employeeNumInput.sendKeys(employeeNum); }
From source file:cls.ui.model.selenium.carDealerManage.BasicInfoPage.java
public void enterPlaceProportion(String placeProportion) throws Throwable { WebElement placeProportionInput = driver.findElement(By.xpath( "/html/body/div/div[1]/div[1]/div[2]/div[1]/div/div/div/form/fieldset/div[1]/div[2]/div[9]/div[2]/div/input")); placeProportionInput.clear();// w w w. j a v a2 s.c o m placeProportionInput.sendKeys(placeProportion); }
From source file:cls.ui.model.selenium.carDealerManage.BasicInfoPage.java
public void enterSalesVolume(String salesVolume) throws Throwable { WebElement salesVolumeInput = driver.findElement(By.xpath( "/html/body/div/div[1]/div[1]/div[2]/div[1]/div/div/div/form/fieldset/div[1]/div[2]/div[9]/div[3]/div/input")); salesVolumeInput.clear();/*from w ww .j a va 2s . com*/ salesVolumeInput.sendKeys(salesVolume); }
From source file:cls.ui.model.selenium.carDealerManage.BasicInfoPage.java
public void enterAccountName(String accountName) throws Throwable { WebElement accountNameText = driver.findElement( By.xpath("/html/body/div[1]/div[1]/div[2]/div/div/form/div[1]/div[1]/div[1]/div/input")); accountNameText.clear();//w ww.j a v a 2 s . c o m accountNameText.sendKeys(accountName); }
From source file:cls.ui.model.selenium.carDealerManage.BasicInfoPage.java
public void enterSubBankName(String subBankName) throws Throwable { WebElement subBankNameText = driver.findElement( By.xpath("/html/body/div[1]/div[1]/div[2]/div/div/form/div[1]/div[2]/div[1]/div/input")); subBankNameText.clear();/* w w w. j ava 2 s . c om*/ subBankNameText.sendKeys(subBankName); }
From source file:cls.ui.model.selenium.carDealerManage.BasicInfoPage.java
public void enterBankCardNum(String bankCardNum) throws Throwable { WebElement cardNumText = driver.findElement( By.xpath("/html/body/div[1]/div[1]/div[2]/div/div/form/div[1]/div[2]/div[2]/div/input")); cardNumText.clear();// w ww. ja v a 2 s . com cardNumText.sendKeys(bankCardNum); }