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

net.serenitybdd.screenplay.actions.Open Maven / Gradle / Ivy

There is a newer version: 4.2.8
Show newest version
package net.serenitybdd.screenplay.actions;

import net.serenitybdd.core.pages.PageObject;

/**
 * Open the browser of an actor on a specified page or URL.
 */
public class Open {

    public static OpenPage browserOn(PageObject targetPage) {
        return new OpenPage(targetPage);
    }

    public static Open browserOn() {
        return new Open();
    }

    public static OpenUrl url(String targetUrl) {
        return new OpenUrl(targetUrl);
    }

    public static OpenAt relativeUrl(String targetUrl) {
        return new OpenAt(targetUrl);
    }

    public OpenPage the(PageObject targetPage) {
        return new OpenPage(targetPage);
    }

    public OpenPageWithName thePageNamed(String pageName) {
        return new OpenPageWithName(pageName);
    }

    public OpenPageFromClass the(Class targetPageClass) {
        return new OpenPageFromClass(targetPageClass);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy