webDriver.get(url);
return WebDriverUtils.newPage(webDriver, pageClass);
}
private String getUrlFromPageClass(Class<? extends Page> pageClass) {
PageURL annotation = AnnotationUtils.findAnnotation(pageClass, PageURL.class);
if (annotation != null) {
return annotation.value();
}
return null;
}