Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import com.frameworkium.core.ui.annotations.Visible;
import com.frameworkium.core.ui.pages.BasePage;
import org.openqa.selenium.WebElement;
public abstract class AbstractSomethingPage<T extends BasePage<T>> extends BasePage<T> {
@Visible
private WebElement foo;
public void doSomething() {
foo.clear();
}
}
@ham1

This comment has been minimized.

Copy link
Owner Author

commented Aug 5, 2016

This can be used to better organise PageObjects which share common features but are also different.

To use this, do something like:

public class SubClassPage extends AbstractSomethingPage<SubClassPage> {

   // ...

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.