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

noraui.application.page.IPage Maven / Gradle / Ivy

There is a newer version: 4.4.0
Show newest version
package noraui.application.page;

import org.openqa.selenium.WebDriver;

import noraui.application.page.Page.PageElement;
import noraui.exception.Callbacks.Callback;

public interface IPage {

    /**
     * Quick getter to the global web driver
     * 
     * @return
     *         The global instance of web driver
     */
    WebDriver getDriver();

    /**
     * @return noraui.exception.Callbacks.Callback of page.
     */
    Callback getCallBack();

    /**
     * @param key
     *            of PageElement
     * @return noraui.application.page.Page.PageElement
     */
    PageElement getPageElementByKey(String key);

    /**
     * @return key of page
     */
    String getPageKey();

    /**
     * @return application name
     */
    String getApplication();

    /**
     * @return get the linked container page.
     */
    Page getMotherPage();

    /**
     * set the linked container page.
     *
     * @param motherPage
     *            is the mother page linked
     */
    void setMotherPage(Page motherPage);

    /**
     * @param elements
     *            in a array of element
     * @return true or false
     */
    boolean checkPage(Object... elements);

    interface IPageElement {

        /**
         * @return key of page element
         */
        String getKey();

        /**
         * @return label of page element
         */
        String getLabel();

        /**
         * @return page of page element
         */
        IPage getPage();

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy