Package org.seleniuminspector

Source Code of org.seleniuminspector.ServerLoadingMode

package org.seleniuminspector;

import com.thoughtworks.selenium.Selenium;

/**
* @author Eugene Goncharov
*/
public class ServerLoadingMode extends LoadingMode {
    private static LoadingMode loadingMode = new ServerLoadingMode();

    private ServerLoadingMode() {
    }

    public static LoadingMode getInstance() {
        return loadingMode;
    }

    public void waitForLoad() {
        Selenium selenium = SeleniumHolder.getInstance().getSelenium();
        selenium.waitForPageToLoad("30000");
        sleep(1000);
    }
}
TOP

Related Classes of org.seleniuminspector.ServerLoadingMode

TOP
Copyright © 2018 www.massapi.com. 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.