Using Page Object, cannot work on the IWebElements loaded on the page
When debugged the objects show a value as "{System.Runtime.Remoting.Proxies.__TransparentProxy} System.Collections.Generic.IList<OpenQA.Selenium.IWebElement> {System.Runtime.Remoting.Proxies.__TransparentProxy}"
For example the element is,
[FindsByAttribute(How = How.TagName, Using = "label")]
private IList
Duplicate of #1114
@jimevans, how to fix the existing page classes (there are many), can you give me some example code to show?
@jimevans , Can you give an example on how to workaround this issue?
There is no workaround. You could implement your own classes to do so, one class implement the IPageObjectMemberDecorator interface, and your own proxy objects that would be created that don't use the .NET RealProxy. Or you could petition Microsoft to allow TransparentProxy object to evaluate their properties when using Intellisense in Visual Studio.
Thanks @jimevans. I would really appreciate if you can give me some example code on how to implement using IPageObjectMemberDecorator, google yields about 10 results without any example code?
How about the code in the .NET bindings itself?
@jimevans not helpful, do you mind giving some real example code?
I'm sorry that's not helpful. As far as I know, that's the only implementation in existence. I know of no other samples of how to do this, and no, I do not have the time to create an example as I'm struggling with a pretty nasty bout of influenza at the moment.
@jimevans, hope u feel better soon!