Package net.sourceforge.seleniumflexapi.call

Examples of net.sourceforge.seleniumflexapi.call.FlashCall


  }

  protected void ensureWidgetEnabled(final String widgetId, final boolean enabledState, final long timeoutMillis) {
    // This mechanism for checking the enabled state is to work around an intermittent issue where the widget
    // does not exist at the time of the enabled check.
    FlashCallTimer.waitForCall(timeoutMillis, new FlashCall() {
      @Override
      public boolean attemptCall() {
        try {
          return flexSelenium.isEnabled(widgetId) == enabledState;
        }
View Full Code Here


  }
 
  protected void ensureWidgetVisibility(final String widgetId, final boolean visibility, final long timeoutMillis) {
    // This mechanism for checking the visibility state is to work around an intermittent issue where the widget
    // does not exist at the time of the visibility check.
    FlashCallTimer.waitForCall(timeoutMillis, new FlashCall() {
      @Override
      public boolean attemptCall() {
        try {
          boolean isVisible = flexSelenium.isVisible(widgetId);
          return visibility == isVisible;
View Full Code Here

    FlashCallTimer.waitForCall(TIMEOUT_MILLIS, new FlashComboHasSelectedValueCall(flexSelenium, widgetId, value));
  }

  protected void ensureComboNoSelectedItem(final String widgetId) {
    ensureWidgetVisibility(widgetId, true);
    FlashCallTimer.waitForCall(TIMEOUT_MILLIS, new FlashCall() {
      @Override
      public boolean attemptCall() {
        return flexSelenium.getSelectionIndex(widgetId) == -1;
      }
View Full Code Here

  }
 
  protected void ensureWidgetHasMatchingText(final String widgetId, final String regularExpression) {
    ensureWidgetVisibility(widgetId, true);
   
    FlashCallTimer.waitForCall(TIMEOUT_MILLIS, new FlashCall() {
      @Override
      public boolean attemptCall() {
        return flexSelenium.getText(widgetId).matches(regularExpression);
      }
View Full Code Here

    FlashCallTimer.waitForNegatedCall(TIMEOUT_MILLIS, new FlashNumberOfRowsCall(flexSelenium, widgetId, initialRowCount));
  }
 
  protected void ensureDataGridRowValue(final String widgetId, final int row, final int column, final String expectedValue) {
    ensureWidgetVisibility(widgetId, true);
    FlashCallTimer.waitForCall(TIMEOUT_MILLIS, new FlashCall() {
      private String lastValue;
     
      @Override
      public boolean attemptCall() {
        lastValue = flexSelenium.getDataGridValue(widgetId, row, column);
View Full Code Here

TOP

Related Classes of net.sourceforge.seleniumflexapi.call.FlashCall

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.