This directory contains replica of the dynamic element locator annotation class code discussed in dynamic-using-in-findsby-with-selenium
The goal is to combine this technique with AngularJS Protractor advanced Page Objects jpagefactory - unlike 'core' Selenium, AngularJS Protractor supports By locators which consume several arguments:
By cssContainingText(final String cssSelector, String text)By repeaterRows(final String repeat, Integer index)By repeaterColumn(final String repeat, String binding)By repeaterElement(final String repeat, Integer index, String binding)
JPageFactory currently only supports some extended annotation:
@FindBy(how = How.REPEATER_COLUMN, using = "row in rows", column = "name")@FindBy(how = How.CSS_CONTAINING_TEXT, using = "span.todoName", text = "Angular-js")
To be useful such annotations must suport deferred configuration in the way Dynamic FindBy offers:
@FindBy(how = How.REPEATER_ELEMENT, using = "repeater" , index ="${index}", binding = "${binding}")