Last active
August 29, 2015 14:19
-
-
Save jsdevel/027de788df139a0b660f to your computer and use it in GitHub Desktop.
java-8-selenium-pageobject-with-mixins
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class HomePage extends Page<HomePage> | |
implements SearchWidget { | |
// package private contructor | |
HomePage () {} | |
// Home Page specific methods | |
public HomePage doSomethingOnTheHomePage() { | |
// do something | |
return this; | |
} | |
public HomePage doSomethingElseOnTheHomePage() { | |
// do something else | |
return this; | |
} | |
@Override | |
protected String getPagePath() { | |
return "/"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment