public ElementLocator createLocator(Field field) {
return new MyElementLocator(searchContext, new HtmlElementFieldAnnotationsHandler(field));
}
public ElementLocator createLocator(Class clazz) {
return new MyElementLocator(searchContext, new HtmlElementClassAnnotationsHandler(clazz));
}