Object page = setupPage(grapheneContext, localSearchContext, declaredClass);
setValue(field, target, page);
} catch (NoSuchMethodException ex) {
throw new PageObjectInitializationException(errorMsgBegin
+ " Check whether declared Page Object has no argument constructor!", ex);
} catch (IllegalAccessException ex) {
throw new PageObjectInitializationException(
" Check whether declared Page Object has public no argument constructor!", ex);
} catch (InstantiationException ex) {
throw new PageObjectInitializationException(errorMsgBegin
+ " Check whether you did not declare Page Object with abstract type!", ex);
} catch (Exception ex) {
throw new PageObjectInitializationException(errorMsgBegin, ex);
}
}
}