Suppose, if i have a element like this in page
<ele id="g" type="elebox">
I want to use custom type for this, I tried to use ElementContainer
for creating a custom type and use ElementOfType to find this control in the document. But it is not seems to be working out.
[ElementTag("ele")]
public class Ele : ElementContainer<Element> {
/* constructurs with DomContainer, ElementFinder */
}
and
ElementFactory.RegisterElementType(typeof(Ele));
browser.ElementOfType<Ele>("g")
returns null. Any help is greatly appreciated.