String startingUrlTemplate = getStartingUrl();
return urlWithParametersSubstituted(startingUrlTemplate, parameterValues);
}
public String getNamedUrl(final String name) {
NamedUrls urlAnnotation = pageObject.getClass().getAnnotation(NamedUrls.class);
if (urlAnnotation != null) {
NamedUrl[] namedUrlList = urlAnnotation.value();
for (NamedUrl namedUrl : namedUrlList) {
if (namedUrl.name().equals(name)) {
return prefixedWithDefaultUrl(namedUrl.url());
}
}