I am new to Page factory model - I need number of elements in list, I am 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 am 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.