List of usage examples for org.openqa.selenium Keys TAB
Keys TAB
To view the source code for org.openqa.selenium Keys TAB.
Click Source Link
From source file:org.openlmis.pageobjects.RefrigeratorPage.java
License:Open Source License
public void enterValueInNotesTextArea(String value, int refrigeratorNumber) { WebElement notesTextArea = testWebDriver.getElementById("notes" + (refrigeratorNumber - 1)); testWebDriver.waitForElementToAppear(notesTextArea); sendKeys(notesTextArea, value);/*from w w w.j a v a 2 s . co m*/ notesTextArea.sendKeys(Keys.TAB); }
From source file:org.openlmis.pageobjects.RequisitionPage.java
License:Open Source License
public void enterValuesOnRegimenScreen(int columnNumber, int row, String value) { Map<Integer, String> tableIdColumnMapper = new HashMap<>(); tableIdColumnMapper.put(3, "patientsOnTreatment"); tableIdColumnMapper.put(4, "patientsToInitiateTreatment"); tableIdColumnMapper.put(5, "patientsStoppedTreatment"); tableIdColumnMapper.put(6, "remarks"); WebElement element = testWebDriver.getElementById(tableIdColumnMapper.get(columnNumber) + "_" + (row - 1)); testWebDriver.waitForElementToAppear(element); sendKeys(element, value);// w ww . ja v a 2 s . c om element.sendKeys(Keys.TAB); }
From source file:org.openlmis.pageobjects.VisitInformationPage.java
License:Open Source License
@Override public void enterValues(List<Map<String, String>> data) { Map<String, String> map = data.get(0); sendKeys(fieldMap.get(OBSERVATIONS), map.get(OBSERVATIONS)); fieldMap.get(OBSERVATIONS).sendKeys(Keys.TAB); sendKeys(fieldMap.get(VERIFIED_BY_NAME), map.get(VERIFIED_BY_NAME)); fieldMap.get(VERIFIED_BY_NAME).sendKeys(Keys.TAB); sendKeys(fieldMap.get(VERIFIED_BY_TITLE), map.get(VERIFIED_BY_TITLE)); fieldMap.get(VERIFIED_BY_TITLE).sendKeys(Keys.TAB); sendKeys(fieldMap.get(CONFIRMED_BY_NAME), map.get(CONFIRMED_BY_NAME)); fieldMap.get(CONFIRMED_BY_NAME).sendKeys(Keys.TAB); sendKeys(fieldMap.get(CONFIRMED_BY_TITLE), map.get(CONFIRMED_BY_TITLE)); fieldMap.get(CONFIRMED_BY_TITLE).sendKeys(Keys.TAB); }
From source file:org.openlmis.pageobjects.VisitInformationPage.java
License:Open Source License
public void enterObservations(String observations) { testWebDriver.waitForElementToAppear(observationsField); sendKeys(observationsField, observations); observationsField.sendKeys(Keys.TAB); }
From source file:org.openlmis.pageobjects.VisitInformationPage.java
License:Open Source License
public void enterConfirmedByName(String confirmedByName) { testWebDriver.waitForElementToAppear(confirmedByNameField); sendKeys(confirmedByNameField, confirmedByName); confirmedByNameField.sendKeys(Keys.TAB); }
From source file:org.openlmis.pageobjects.VisitInformationPage.java
License:Open Source License
public void enterConfirmedByTitle(String confirmedByTitle) { testWebDriver.waitForElementToAppear(confirmedByTitleField); sendKeys(confirmedByTitleField, confirmedByTitle); confirmedByTitleField.sendKeys(Keys.TAB); }
From source file:org.openlmis.pageobjects.VisitInformationPage.java
License:Open Source License
public void enterVerifiedByName(String verifiedByName) { testWebDriver.waitForElementToAppear(verifiedByNameField); sendKeys(verifiedByNameField, verifiedByName); verifiedByNameField.sendKeys(Keys.TAB); }
From source file:org.openlmis.pageobjects.VisitInformationPage.java
License:Open Source License
public void enterVerifiedByTitle(String verifiedByTitle) { testWebDriver.waitForElementToAppear(verifiedByTitleField); sendKeys(verifiedByTitleField, verifiedByTitle); verifiedByTitleField.sendKeys(Keys.TAB); }
From source file:org.openlmis.pageobjects.VisitInformationPage.java
License:Open Source License
public void enterVisitDateAsCurrentDate() { testWebDriver.waitForElementToAppear(visitDateField); visitDateField.click();//from w w w .j av a 2 s .c o m testWebDriver.waitForElementToAppear(calender); calender.click(); visitDateField.sendKeys(Keys.TAB); }
From source file:org.openlmis.pageobjects.VisitInformationPage.java
License:Open Source License
public void enterVehicleId(String vehicleId) { testWebDriver.waitForElementToAppear(vehicleIdField); sendKeys(vehicleIdField, vehicleId); vehicleIdField.sendKeys(Keys.TAB); }