I'm new to Page factory model - I need number of elements in list, I'm trying in the following way:
**[FindsBy(How = How.XPath, Using = "//*[@id='ABC']/div")]
public List<IWebElement> allElements;
Console.Write("Number of Elements: " +allElements.Count);**
When I run my test I'm getting:
ERROR system.argumentexception: object of type 'castle.Proxies.IwrapsElementProxy_1' cannot be converted to type 'System.Collections.Generic.List 1 [OpenQA.Selenim.IWebElemen]'
Not sure what is going wrong here.
Any input is much appreciated.