Storing elements of PageFactory

81 Views Asked by At

Hi I have many page classes with many WebElements like one of them:

public class DraggablePage extends BaseExtendablePage {

@FindBy(xpath = "//a[@href= '#tabs-1']") WebElement defaultFunctionalityTableHeader;
@FindBy(xpath = "//a[@href= '#tabs-3']") WebElement constraintMovementTableHeader;
@FindBy(xpath = "//a[@href= '#tabs-4']") WebElement cursorStyleTableHeader;
...

The question is where could I store those elements? I cannot put it in another class as there is no possibility to extend because every my pageClass extends BaseExtendablePage. In the interface also no possibility to move the elements as the variables cannot be initialized.

0

There are 0 best solutions below