Hello guys,
Did someone tried using FindsBySequence multiple times when writing test in c#.
I have something like that
[FindsBySequence]
[FindsBy(How = How.CssSelector, Using = "div.container.divPromoImages div.row.visible-sm.visible-md.visible-lg")]
[FindsBy(How = How.CssSelector,Using = ("div.col-md-3.col-sm-3.hidden-xs.promo"))]
private IList<IWebElement> _promoDeals;
[FindsBySequence]
[FindsBy(How = How.CssSelector, Using = "div.container.divPromoImages div.row.visible-sm.visible-md.visible-lg")]
[FindsBy(How = How.CssSelector, Using = ("div.newsletterButton div.row div.col-sm-9.textWrappe"))]
private IList<IWebElement> _promoDeals2;
When I'm using only first FindsBySequence everything is correct elements are find correctly. Bu when I added second FindsBySequence element it stopped to work
and none element was found neither in first or second list .
Can someone tell me what why it's behave this way and is there any workaround ?
Regards
Lukasz