Example usage for org.openqa.selenium Keys TAB

List of usage examples for org.openqa.selenium Keys TAB

Introduction

In this page you can find the example usage for org.openqa.selenium Keys TAB.

Prototype

Keys TAB

To view the source code for org.openqa.selenium Keys TAB.

Click Source Link

Usage

From source file:org.openlmis.pageobjects.FullCoveragePage.java

License:Open Source License

public void enterFemaleMobileBrigade(Integer femaleMobileBrigade) {
    testWebDriver.waitForElementToAppear(femaleMobileBrigadeField);
    sendKeys(femaleMobileBrigadeField, femaleMobileBrigade.toString());
    femaleMobileBrigadeField.sendKeys(Keys.TAB);
}

From source file:org.openlmis.pageobjects.FullCoveragePage.java

License:Open Source License

public void enterMaleHealthCenter(Integer maleHealthCenter) {
    testWebDriver.waitForElementToAppear(maleHealthCenterField);
    sendKeys(maleHealthCenterField, maleHealthCenter.toString());
    maleHealthCenterField.sendKeys(Keys.TAB);
}

From source file:org.openlmis.pageobjects.FullCoveragePage.java

License:Open Source License

public void enterMaleMobileBrigade(String maleMobileBrigade) {
    testWebDriver.waitForElementToAppear(maleMobileBrigadeField);
    sendKeys(maleMobileBrigadeField, maleMobileBrigade);
    maleMobileBrigadeField.sendKeys(Keys.TAB);
}

From source file:org.openlmis.pageobjects.RefrigeratorPage.java

License:Open Source License

public void enterValueInRefrigeratorTemperature(String value, int refrigeratorNumber) {
    WebElement refrigeratorTemperatureTextField = testWebDriver
            .getElementByName("temperature" + (refrigeratorNumber - 1));
    testWebDriver.waitForElementToAppear(refrigeratorTemperatureTextField);
    sendKeys(refrigeratorTemperatureTextField, value);
    refrigeratorTemperatureTextField.sendKeys(Keys.TAB);
}

From source file:org.openlmis.pageobjects.RefrigeratorPage.java

License:Open Source License

public void enterTextInOtherProblemTextBox(String value, int refrigeratorNumber) {
    WebElement problemOtherTextBox = testWebDriver.getElementById("otherTextbox" + (refrigeratorNumber - 1));
    testWebDriver.waitForElementToAppear(problemOtherTextBox);
    sendKeys(problemOtherTextBox, value);
    problemOtherTextBox.sendKeys(Keys.TAB);
}

From source file:org.openlmis.pageobjects.RefrigeratorPage.java

License:Open Source License

public void enterValueInLowAlarmEvents(String value, int refrigeratorNumber) {
    WebElement lowAlarmEventsTextField = testWebDriver
            .getElementByName("lowAlarmEvent" + (refrigeratorNumber - 1));
    testWebDriver.waitForElementToAppear(lowAlarmEventsTextField);
    sendKeys(lowAlarmEventsTextField, value);
    lowAlarmEventsTextField.sendKeys(Keys.TAB);
}

From source file:org.openlmis.pageobjects.RefrigeratorPage.java

License:Open Source License

public void enterValueInBrandModal(String value) {
    testWebDriver.waitForElementToAppear(brandTextField);
    sendKeys(brandTextField, value);
    brandTextField.sendKeys(Keys.TAB);
}

From source file:org.openlmis.pageobjects.RefrigeratorPage.java

License:Open Source License

public void enterValueInModelModal(String value) {
    testWebDriver.waitForElementToAppear(modelTextField);
    sendKeys(modelTextField, value);
    modelTextField.sendKeys(Keys.TAB);
}

From source file:org.openlmis.pageobjects.RefrigeratorPage.java

License:Open Source License

public void enterValueInManufacturingSerialNumberModal(String value) {
    testWebDriver.waitForElementToAppear(manufacturerSerialNumberTextField);
    sendKeys(manufacturerSerialNumberTextField, value);
    manufacturerSerialNumberTextField.sendKeys(Keys.TAB);
}

From source file:org.openlmis.pageobjects.RefrigeratorPage.java

License:Open Source License

public void enterValueInHighAlarmEvents(String value, int refrigeratorNumber) {
    WebElement highAlarmEventsTextField = testWebDriver
            .getElementByName("highAlarmEvent" + (refrigeratorNumber - 1));
    testWebDriver.waitForElementToAppear(highAlarmEventsTextField);
    sendKeys(highAlarmEventsTextField, value);
    highAlarmEventsTextField.sendKeys(Keys.TAB);
}