Javadoc
Base class for new page objects.
A page could be an activity, fragment or just a partial view.
Recommend is to give your root layout a unique id to safely check that a specific page is currently shown.
EspPage is not necessary for writing page objects.
But it provides some actions and assertions you could do on pages.
Example usage:
Create subclass with some page elements.
```java
public class MyPage extends EspPage {
public MyPage() {
super(R.id.activity_root_my);
}
public EspTextView someTextView() {
return EspTextView.byId(R.id.textView);
}
public EspTextView someButton() {
return EspButton.byId(R.id.button);
}
}
```
Then use it in your tests.
```java
public class MyPageTest {
MyPage myPage = new MyPage();
public void testSomething() {
myPage.someTextView().assertTextIs("");
myPage.someButton().click();
myPage.someTextView().assertTextIs("Clicked");
}
}
```