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

dev.galasa.selenium.IWebDriver Maven / Gradle / Ivy

The newest version!
/*
 * Copyright contributors to the Galasa project
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package dev.galasa.selenium;

import java.util.List;

public interface IWebDriver extends ISeleniumManager {
    /**
     * Allocate a new WebPage
     * @throws SeleniumManagerException
     */
    public IWebPage allocateWebPage() throws SeleniumManagerException;

    /**
     * Allocate a new WebPage for a provided URL
     * @throws SeleniumManagerException
     */
    public IWebPage allocateWebPage(String url) throws SeleniumManagerException;

    /**
     * Allocate a new WebPage for a provided URL with Firefox Options
     * @throws SeleniumManagerException
     */
    public IWebPage allocateWebPage(String url, IFirefoxOptions options) throws SeleniumManagerException;

    /**
     * Allocate a new WebPage for a provided URL with Chrome Options
     * @throws SeleniumManagerException
     */
    public IWebPage allocateWebPage(String url, IChromeOptions options) throws SeleniumManagerException;

    /**
     * Allocate a new WebPage for a provided URL with Edge Options
     * @throws SeleniumManagerException
     */
    public IWebPage allocateWebPage(String url, IEdgeOptions options) throws SeleniumManagerException;

    /**
     * Allocate a new WebPage for a provided URL with Internet Explorer Options
     * @throws SeleniumManagerException
     */
    public IWebPage allocateWebPage(String url, IInternetExplorerOptions options) throws SeleniumManagerException;

    /**
     * Allocate a new WebPage for a provided URL with Opera Options
     * @throws SeleniumManagerException
     */
    public IWebPage allocateWebPage(String url, IOperaOptions options) throws SeleniumManagerException;

    /**
     * Creates a new interface to the Firefox properties that can be set.
     * @return IFirefoxOptions
     */
    public IFirefoxOptions getFirefoxOptions();

    /**
     * Creates a new interface to the Chrome properties that can be set.
     * @return IChromeOptions
     */
    public IChromeOptions getChromeOptions();

    /**
     * Creates a new interface to the Edge properties that can be set.
     * @return IEdgeOptions
     */
    public IEdgeOptions getEdgeOptions();
    
    /**
     * Creates a new interface to the Opera properties that can be set.
     * @return IOperaOptions
     */
    public IOperaOptions getOperaOptions();

    /**
     * Creates a new interface to the InternetExplorer properties that can be set.
     * @return IInternetExplorerOptions
     */
    public IInternetExplorerOptions getInternetExplorerOptions();  
    
    /**
     * Return the active pages
     * @return List
     */
    public List getPages();
    
    /**
     * Cycle through any pages and quit
     */
    public void discard();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy