Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. if (newView.isClickable()
  2. && !newView.getClassName().equals(android.widget.Switch.class.getName())
  3. && !newView.getClassName().equals(android.widget.Spinner.class.getName())
  4. && !newView.getClassName().equals(android.widget.EditText.class.getName())) {
  5. clickOnView(newView, path);
  6.  
  7. }
  8.  
  9. ------------------------------------
  10. if (viewClickable(newView)) {
  11. clickOnView(newView, path);
  12. }
  13.  
  14. private boolean viewClickable(UiObject newView) throws UiObjectNotFoundException {
  15. return newView.isClickable()
  16. && !newView.getClassName().equals(android.widget.Switch.class.getName())
  17. && !newView.getClassName().equals(android.widget.Spinner.class.getName())
  18. && !newView.getClassName().equals(android.widget.EditText.class.getName());
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement