I have 2 stages where the locators for one Webelement can differ. (change during development).
So i need to declare 2 different Locators for the same Element.
`[FindsBy(How = How.Id, Using = "id1") ]
[FindsBy(How = How.Id, Using = "id-1") ]
private IWebElement txtBox;
public GoToKeywords(WebDriverClient driver)
{
PageFactory.InitElements(driver.GetDriver(),this);
}`
When the test runs where the first FindsBy (id1) condition is met -> everything is fine
When the test runs on a stage where the second FindsBy (id-1) condition is met -> i get a nullreference exception - it looks like that the second FindsBy is ignored.