Package org.jemmy.timing

Examples of org.jemmy.timing.Waiter


                    Logger.getLogger(Browser.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        }, "FX app launch thread").start();

        new Waiter(new Timeout("launch start waiter", 10000)).ensureState(new State<Boolean>() {
            public Boolean reached() {
                try {
                    Thread.sleep(100); // otherwise mac doesn't start
                } catch (InterruptedException ex) {
                }
View Full Code Here


     *
     * @param timeoutName
     * @return
     */
    public Waiter getWaiter(String timeoutName) {
        return new Waiter(getTimeout(timeoutName));
    }
View Full Code Here

     * Waits for UI to became quiet which is determined using
     * {@linkplain #isQuiet() isQuiet()} method.
     * @param waitTime maximum time for waiting.
     */
    public void waitQuiet(Timeout waitTime) {
        new Waiter(waitTime).ensureState(new State<Object>() {

            public Object reached() {
                return isQuiet() ? true : null;
            }
        });
View Full Code Here

                }

                new NodeWrap(getEnvironment(), state).mouse().click();
            }

            new Waiter(WAIT_STATE_TIMEOUT).waitValue(state, new State<Node>() {
                @Override
                public Node reached() {
                    return getSelectedItem();
                }
                @Override
View Full Code Here

        public void select(final ITEM state) {

            Wrap<ITEM> cellItem = as(Parent.class, itemType).lookup(new EqualsLookup<ITEM>(state)).wrap(0);
            cellItem.mouse().click();

            new Waiter(WAIT_STATE_TIMEOUT).waitValue(state, new State<ITEM>() {

                @Override
                public ITEM reached() {
                    Object selected = getSelectedItem();
                    return selected == null ? null
View Full Code Here

                    return control.equals(state);
                }
            }).wrap(0);
            cellItem.mouse().click();

            new Waiter(WAIT_STATE_TIMEOUT).waitValue(state, new State<TreeItem>() {

                @Override
                public TreeItem reached() {
                    return getSelectedItem();
                }
View Full Code Here

                        || "127.0.0.1".equals(connectionHost)) {
                    // TODO Improve check for localhost
                    startServer();
                    Environment.getEnvironment().getTimeout("");
                    Timeout waitTime = new Timeout("connection wait time", 5 * 60000);
                    socket = new Waiter(waitTime).ensureState(new State<Socket>() {
                        Exception ex;
                        public Socket reached() {
                            Socket socket = null;
                            try {
                                socket = new Socket(connectionHost, connectionPort);
View Full Code Here

                        || "127.0.0.1".equals(connectionHost)) {
                    // TODO Improve check for localhost
                    startServer();
                    Environment.getEnvironment().getTimeout("");
                    Timeout waitTime = new Timeout("connection wait time", 5 * 60000);
                    socket = new Waiter(waitTime).ensureState(new State<Socket>() {
                        Exception ex;
                        public Socket reached() {
                            Socket socket = null;
                            try {
                                socket = new Socket(connectionHost, connectionPort);
View Full Code Here

TOP

Related Classes of org.jemmy.timing.Waiter

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.