Lines 88-90: I've some Angular specific findbys (in
https://github.com/paul-hammant/ngWebDriver) that work well when a single WebElement is found. But they do not work when it is List<WebElement>. I'm thinking because line 91 needs to be
&& field.getAnnotation(ByAngularModel.FindBy.class) == null
Can't do that of course for multiple reasons.
Java can't do inheritance for annotations with (@ByAngularModel.FindBy extends @FindBy) so there's no clean OO way of making that list of three more extendable
I wonder whether a name match would be enough - loop thru all annotations and treat any @FindBy in any package the same.
Thoughts?
- Paul