List of usage examples for org.openqa.selenium By className
public static By className(String className)
From source file:com.hotwire.selenium.desktop.details.HotelDetailsPage.java
License:Open Source License
public boolean isCancellationPolicyPanelPresent() { lnkOpenCancellationPolicy.click();/*from w w w .j a v a2 s . c om*/ return new WebDriverWait(getWebDriver(), 3) .until(ExpectedConditions .presenceOfElementLocated(By.className(CANCELLATION_POLICY_PANEL_CLOSE_LINK_CLASS))) .isDisplayed() ? true : false; }
From source file:com.hotwire.selenium.desktop.helpCenter.HCContactUsForm.java
License:Open Source License
public HCContactUsForm(WebDriver webDriver) { super(webDriver, By.className("emailUs")); }
From source file:com.hotwire.selenium.desktop.helpCenter.HCIndexPage.java
License:Open Source License
public HCIndexPage(WebDriver webDriver) { super(webDriver, By.className("landingSections")); }
From source file:com.hotwire.selenium.desktop.helpCenter.lifeChat.PreChatOutsideOperationHoursForm.java
License:Open Source License
public PreChatOutsideOperationHoursForm(WebDriver webdriver) { super(webdriver, By.className("unavailable")); }
From source file:com.hotwire.selenium.desktop.helpCenter.Salesforce.SFHCIndexPage.java
License:Open Source License
public SFHCIndexPage(WebDriver webDriver) { super(webDriver, By.className("searchBox")); }
From source file:com.hotwire.selenium.desktop.row.billing.CarConfirmationPage.java
License:Open Source License
private Integer getPeopleCapacity() { WebElement peopleCapacity = amenities.findElement(By.className("seleniumSeatingCapacity")); return Integer.parseInt(peopleCapacity.getText().replaceAll("[^0-9]", "")); }
From source file:com.hotwire.selenium.desktop.row.billing.CarConfirmationPage.java
License:Open Source License
private Integer getPackageCapacity() { WebElement packageCapacity = amenities.findElement(By.className("seleniumTrunkCapacity")); return Integer.parseInt(packageCapacity.getText().replaceAll("[^0-9]", "")); }
From source file:com.hotwire.selenium.desktop.row.billing.CarConfirmationPage.java
License:Open Source License
private boolean getConditionerInfo() { try {/* w w w. java 2 s .c o m*/ return amenities.findElement(By.className("seleniumConditioner")).isEnabled(); } catch (Exception e) { // no action } return false; }
From source file:com.hotwire.selenium.desktop.row.billing.CarConfirmationPage.java
License:Open Source License
private String getTransmissionType() { return amenities.findElement(By.className("seleniumTransmission")).getText(); }
From source file:com.hotwire.selenium.desktop.row.billing.CarConfirmationPage.java
License:Open Source License
private String getCurrency() { WebElement totalPrice = paymentDetailsModule.findElement(By.className("seleniumTotalPrice")); return totalPrice.getText().replaceAll("[0-9.]", ""); }