I define radioButton that there. It work if I initialize element that there But it doesn't work with @FindBy annotation. I create a constructor:
public MyRadioButtons(By optionsNamesLocatorTemplate) {
super(optionsNamesLocatorTemplate);
//some code
}
When I run tests, I have an error:
java.lang.AssertionError: Error in getElementInstance for field
How to define them using JDI style and approach?