Skip to content

Instantly share code, notes, and snippets.

@derinbay
Last active December 13, 2016 18:41
Show Gist options
  • Save derinbay/dc69f3b16b606df93b64c529911d268e to your computer and use it in GitHub Desktop.
Save derinbay/dc69f3b16b606df93b64c529911d268e to your computer and use it in GitHub Desktop.
public void loadElementsForApp(Object webComponent) {
PageFactory.initElements(new AppiumFieldDecorator(webDriver), webComponent);
}
public void loadElementsForApp() {
PageFactory.initElements(new AppiumFieldDecorator(webDriver), page);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment