List of usage examples for org.openqa.selenium By className
public static By className(String className)
From source file:com.hotwire.selenium.desktop.row.billing.CarConfirmationPage.java
License:Open Source License
private Float getTotalPrice() { WebElement totalPrice = paymentDetailsModule.findElement(By.className("seleniumTotalPrice")); return Float.parseFloat(totalPrice.getText().replaceAll("[^0-9.]", "")); }
From source file:com.hotwire.selenium.desktop.row.billing.CarConfirmationPage.java
License:Open Source License
private Float getPayableUponArrival() { WebElement payableUponArrival = paymentDetailsModule .findElement(By.className("seleniumPayableUponArrival")); return Float.parseFloat(payableUponArrival.getText().replaceAll("[^0-9.]", "")); }
From source file:com.hotwire.selenium.desktop.row.billing.CarConfirmationPage.java
License:Open Source License
private Float getPayableNowPrice() { WebElement payableNowPrice = paymentDetailsModule.findElement(By.className("seleniumPayableNowPrice")); return Float.parseFloat(payableNowPrice.getText().replaceAll("[^0-9.]", "")); }
From source file:com.hotwire.selenium.desktop.row.billing.CarConfirmationPage.java
License:Open Source License
public String getCardHolderName() { try {//from w ww .j ava 2s. c o m WebElement cardHolderName = paymentDetailsModule .findElement(By.className("seleniumFullCardHolderName")); return cardHolderName.getText(); } catch (Exception e) { // no action } return null; }
From source file:com.hotwire.selenium.desktop.row.billing.CarConfirmationPage.java
License:Open Source License
private String getCardNumber() { try {//from ww w . j a v a 2 s . c o m WebElement cardNumber = paymentDetailsModule.findElement(By.className("seleniumCardNumber")); return cardNumber.getText().replaceAll("[^0-9]", ""); } catch (Exception e) { // no action } return null; }
From source file:com.hotwire.selenium.desktop.row.billing.CarConfirmationPage.java
License:Open Source License
private String getExpiryDate() { try {/*from www.j a va 2s .c o m*/ return paymentDetailsModule.findElement(By.className("seleniumExpireDate")).getText(); } catch (Exception e) { // no action } return null; }
From source file:com.hotwire.selenium.desktop.row.billing.CarDetailsPage.java
License:Open Source License
public Float getTotalPriceOnPriceDetails() { WebElement priceOnDetailsModule = priceDetailsModule.findElement(By.className("seleniumTotalPrice")); return Float.parseFloat(priceOnDetailsModule.getText().replaceAll("[^0-9.]", "")); }
From source file:com.hotwire.selenium.desktop.row.billing.CarDetailsPage.java
License:Open Source License
public String getCurrencyPriceDetails() { return priceDetailsModule.findElement(By.className("seleniumTotalPrice")).getText().replaceAll("[0-9.]", "");/*from www .j a va 2 s . c o m*/ }
From source file:com.hotwire.selenium.desktop.row.billing.CarDetailsPage.java
License:Open Source License
public String getCarModelPriceDetails() { return priceDetailsModule.findElement(By.className("seleniumCarNamePriceDetails")).getText(); }
From source file:com.hotwire.selenium.desktop.row.billing.CarDetailsPage.java
License:Open Source License
private Integer getSeatingCapacity() { WebElement seatingCapacity = amenities.findElement(By.className("seleniumSeatingCapacity")); return Integer.parseInt(seatingCapacity.getText().replaceAll("[^0-9]", "")); }