Package org.netbeans.jemmy

Examples of org.netbeans.jemmy.JemmyException


    public static void tryWaitAction(final Waiter stateWaiter, final Waitable state, final Context context) {
        try {
            stateWaiter.waitAction(context);
        } catch (InterruptedException e) {
            throw new JemmyException("Waiting of '" + state.getDescription() + "' has been interrupted!");
        }
    }
View Full Code Here


  output.printGolden("Select " + Integer.toString(index) + "`th item in combobox");
  makeComponentVisible();
  try {
      waitComponentEnabled();
  } catch(InterruptedException e) {
      throw(new JemmyException("Interrupted!", e));
  }
  driver.selectItem(this, index);
  if(getVerification()) {
            waitItemSelected(index);
        }
View Full Code Here

  waiter.setOutput(getOutput());
  waiter.setTimeoutsToCloneOf(getTimeouts(), "JTableOperator.WaitEditingTimeout");
  try {
      return((Component)waiter.waitAction(null));
  } catch(InterruptedException e) {
      throw(new JemmyException("Waiting has been interrupted", e));
  }
    }
View Full Code Here

      return("Window containing \"" + popupChooser.getDescription() + "\" popup");
        }
    }));
      return(new JPopupMenuOperator(wind));
  } catch(InterruptedException e) {
      throw(new JemmyException("Popup waiting has been interrupted", e));
  }
    }
View Full Code Here

            aText = getUI().getApproveButtonText((JFileChooser)getSource());
        if(aText != null) {
            return((JButton)innerSearcher.
                   findComponent(new ButtonFinder(aText)));
        } else {
            throw(new JemmyException("JFileChooser.getApproveButtonText() " +
                                     "and getUI().getApproveButtonText " +
                                     "return null"));
        }
    }
View Full Code Here

        fileWaiter.setOutput(getOutput().createErrorOutput());
        fileWaiter.setTimeoutsToCloneOf(getTimeouts(), "JFileChooserOperator.WaitListPaintedTimeout");
        try {
            return(((Integer)fileWaiter.waitAction(null)).intValue());
        } catch(InterruptedException e) {
            throw(new JemmyException("Waiting has been interrupted!"));
        }
    }
View Full Code Here

    public String getDisplayedText() {
  try {
      Document doc = getDocument();
      return(doc.getText(0, doc.getLength()));
  } catch(BadLocationException e) {
      throw(new JemmyException("Exception during text operation with\n    : " +
             toStringSource(), e));
  }
    }
View Full Code Here

  stateWaiter.setTimeoutsToCloneOf(getTimeouts(), "ComponentOperator.WaitStateTimeout");
  stateWaiter.setOutput(getOutput().createErrorOutput());
  try {
      stateWaiter.waitAction(null);
  } catch(InterruptedException e) {
      throw(new JemmyException("Waiting of \"" + state.getDescription() +
             "\" state has been interrupted!"));
  }
    }
View Full Code Here

            Throwable exception = producer.getException();
            if(exception != null) {
                if(exception instanceof JemmyException) {
                    throw((JemmyException)exception);
                } else {
                    throw(new JemmyException("Exception during " + action.getDescription(),
                                             exception));
                }
            }
      return(result);
  } catch(InterruptedException e) {
      throw(new JemmyException("Interrupted!", e));
  }
    }
View Full Code Here

      ActionProducer noBlockingProducer = new ActionProducer(action, false);
      noBlockingProducer.setOutput(output.createErrorOutput());
      noBlockingProducer.setTimeouts(timeouts);
      noBlockingProducer.produceAction(param);
  } catch(InterruptedException e) {
      throw(new JemmyException("Exception during \"" +
             action.getDescription() +
             "\" execution",
             e));
  }
  if(action.exception != null) {
      throw(new JemmyException("Exception during nonblocking \"" +
             action.getDescription() + "\"",
             action.exception));
  }
    }
View Full Code Here

TOP

Related Classes of org.netbeans.jemmy.JemmyException

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.