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.CarDetailsPage.java
License:Open Source License
private Integer getTrunkCapacity() { WebElement trunkCapacity = amenities.findElement(By.className("seleniumTrunkCapacity")); return Integer.parseInt(trunkCapacity.getText().replaceAll("[^0-9]", "")); }
From source file:com.hotwire.selenium.desktop.row.billing.CarDetailsPage.java
License:Open Source License
private String getTransmissionInfo() { return amenities.findElement(By.className("seleniumTransmission")).getText(); }
From source file:com.hotwire.selenium.desktop.row.billing.CarDetailsPage.java
License:Open Source License
private String getPickUpLocation() { return priceDetailsModule.findElement(By.className("seleniumPickupLocation")).getText(); }
From source file:com.hotwire.selenium.desktop.row.billing.CarDetailsPage.java
License:Open Source License
private String getDropOffLocation() { try {//from w ww.j a va 2 s . c o m return priceDetailsModule.findElement(By.className("seleniumDropOffLocation")).getText(); } catch (Exception ex) { // no action } return null; }
From source file:com.hotwire.selenium.desktop.row.billing.CarDetailsPage.java
License:Open Source License
private Float getPayableOnArrival() { WebElement payableOnArrival = priceDetailsModule.findElement(By.className("seleniumPayableOnArrival")); return Float.parseFloat(payableOnArrival.getText().replaceAll("[^0-9.]", "")); }
From source file:com.hotwire.selenium.desktop.row.billing.CarDetailsPage.java
License:Open Source License
private Float getPayableNowPrice() { WebElement payableNowPrice = priceDetailsModule.findElement(By.className("seleniumPayableNowPrice")); return Float.parseFloat(payableNowPrice.getText().replaceAll("[^0-9.]", "")); }
From source file:com.hotwire.selenium.desktop.row.billing.CarDetailsPage.java
License:Open Source License
public String getPickUpDate() { return priceDetailsModule.findElement(By.className("seleniumStartDate")).getText(); }
From source file:com.hotwire.selenium.desktop.row.billing.CarDetailsPage.java
License:Open Source License
public String getDropOffDate() { return priceDetailsModule.findElement(By.className("seleniumEndDate")).getText(); }
From source file:com.hotwire.selenium.desktop.row.billing.CarDetailsPage.java
License:Open Source License
public boolean isCurrencyMessageEnabled() { return !priceDetailsModule.findElement(By.className("note")).getText().equals(""); }
From source file:com.hotwire.selenium.desktop.row.HomePage.java
License:Open Source License
public NewFareFinder getFareFinder() { return new NewFareFinder(getWebDriver(), By.className(HOME_FARE_FINDER)); }