List of usage examples for org.openqa.selenium By name
public static By name(String name)
From source file:com.hotwire.selenium.tools.c3.hotel.oversells.C3HotelRetrieveGuestReservationsResults.java
License:Open Source License
public C3HotelRetrieveGuestReservationsResults(WebDriver webdriver) { super(webdriver, By.name("hotelGuestSelect[0]")); }
From source file:com.hotwire.selenium.tools.c3.hotelCreditCard.C3hotelInformationSearchForm.java
License:Open Source License
public void searchHotelInformationByCTA_Account(String ctaAccount) { findOne("#ctaNo", DEFAULT_WAIT).sendKeys(ctaAccount); findOne(By.name("Submit")).click(); }
From source file:com.hotwire.selenium.tools.c3.hotelCreditCard.C3hotelInformationSearchForm.java
License:Open Source License
public void searchHotelInformationByHotelNameAndState(String hotelName, String state) { findOne("#hotelName", DEFAULT_WAIT).sendKeys(hotelName); findOne(By.name("hotelState")).sendKeys(state); submit();// w w w. j a v a 2s.co m }
From source file:com.hotwire.selenium.tools.c3.hotelCreditCard.C3hotelInformationSearchForm.java
License:Open Source License
public void submit() { findOne(By.name("Submit")).click(); }
From source file:com.hotwire.selenium.tools.c3.overcharges.C3SearchOverchargesPage.java
License:Open Source License
public void clickSearch() { new WebDriverWait(getWebDriver(), 5).until(ExpectedConditions.visibilityOfElementLocated(By.name("Submit"))) .click(); }
From source file:com.hotwire.selenium.tools.c3.purchase.air.C3AirResultsPage.java
License:Open Source License
public String getOrigCity() { return findOne(By.name(origCity)).getAttribute("value"); }
From source file:com.hotwire.selenium.tools.c3.purchase.air.C3AirResultsPage.java
License:Open Source License
public String getDestCity() { return findOne(By.name(destCity)).getAttribute("value"); }
From source file:com.hotwire.selenium.tools.c3.purchase.air.C3AirResultsPage.java
License:Open Source License
public String getStartDate() { return findOne(By.name(startDate)).getAttribute("value"); }
From source file:com.hotwire.selenium.tools.c3.purchase.air.C3AirResultsPage.java
License:Open Source License
public String getEndDate() { return findOne(By.name(endDate)).getAttribute("value"); }
From source file:com.hotwire.selenium.tools.c3.purchase.air.C3AirResultsPage.java
License:Open Source License
public String getPassengers() { return new Select(findOne(By.name(passengers))).getFirstSelectedOption().getText(); }