All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ui4j.api.browser.Page Maven / Gradle / Ivy

The newest version!
package com.ui4j.api.browser;

import java.lang.AutoCloseable;
import java.util.concurrent.TimeUnit;

import com.ui4j.api.dialog.AlertHandler;
import com.ui4j.api.dialog.ConfirmHandler;
import com.ui4j.api.dialog.PromptHandler;
import com.ui4j.api.dom.Document;
import com.ui4j.api.dom.Window;
import com.ui4j.api.event.DocumentListener;
import com.ui4j.spi.JavaScriptEngine;
import com.ui4j.spi.PageView;

public interface Page extends JavaScriptEngine, PageView, AutoCloseable {

    void addDocumentListener(DocumentListener listener);

    void removeListener(DocumentListener listener);

    void waitUntilDocReady();

    void waitUntilDocReady(int timeout, TimeUnit unit);

    void wait(int milliseconds);

    Document getDocument();

    Window getWindow();

    void show(boolean maximized);

    void show();

    void hide();

    void setAlertHandler(AlertHandler handler);

    void setPromptHandler(PromptHandler handler);

    void setConfirmHandler(ConfirmHandler handler);

    BrowserType getBrowserType();

    void close();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy