code: private Button getMainPageButton(String field) throws NoSuchFieldException,
  			SecurityException, IllegalArgumentException, IllegalAccessException {
  		Field f = mainPage.getClass().getDeclaredField(field);
  		f.setAccessible(true);
  		return (Button) f.get(mainPage);
  	}
docs: utils