ch.inftec.ju.ee.webtest.SeleniumPage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ju-testing-ee Show documentation
Show all versions of ju-testing-ee Show documentation
Contains helping classes for Unit Testing, supporting CDI and EE features, including DB access
package ch.inftec.ju.ee.webtest;
import org.openqa.selenium.WebDriver;
/**
* Base class for Selenium Page classes.
* @author Martin
*
*/
public abstract class SeleniumPage {
/**
* WebDriver object used by this page.
*/
protected final WebDriver driver;
protected SeleniumPage(WebDriver driver) {
this.driver = driver;
}
/**
* Gets the page specified with the pageUrl, e.g. web-app/page.jsf.
* @param pageUrl Page URL without protocol, hostname and port
*/
protected final void getPage(String pageUrl) {
WebTestUtils.getPage(this.driver, pageUrl);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy