/// <summary> /// Builds NetSel element. /// </summary> /// <param name="elementType">Type of element.</param> /// <param name="proxy">Instance of NetSelElementProxy.</param> /// <returns>Object.</returns> public object BuildElement(Type elementType, NetSelElementProxy proxy) { if (!_supportedTypesCatalog.ContainsKey(elementType)) { throw new NotSupportedException($"Type {elementType} is not supported"); } return(_supportedTypesCatalog[elementType].Invoke(proxy)); }
public CustomElement(NetSelElementProxy proxy) : base(proxy) { }
/// <summary> /// Initializes a new instance of the SelectWebElement class. /// </summary> public SelectWebElement(NetSelElementProxy proxy) : base(proxy) { }
/// <summary> /// Initializes a new instance of the TableElement class. /// </summary> public TableElement(NetSelElementProxy proxy) : base(proxy) { }
/// <summary> /// Initializes a new instance of the RadioButtonElement class. /// </summary> public RadioButtonElement(NetSelElementProxy proxy) : base(proxy) { }
/// <summary> /// Initializes a new instance of the NetSelElement class. /// </summary> /// <param name="proxy">Instance of NetSelElementProxy class.</param> protected NetSelElement(NetSelElementProxy proxy) { _proxy = proxy; }
/// <summary> /// Initializes a new instance of the CheckBoxElement class. /// </summary> public CheckBoxElement(NetSelElementProxy proxy) : base(proxy) { }
/// <summary> /// Initializes a new instance of the FileUploadElement class. /// </summary> public FileUploadElement(NetSelElementProxy proxy) : base(proxy) { }
/// <summary> /// Initializes a new instance of the HiddenFieldElement class. /// </summary> public HiddenFieldElement(NetSelElementProxy proxy) : base(proxy) { }
/// <summary> /// Initializes a new instance of the TextElement class. /// </summary> public TextElement(NetSelElementProxy proxy) : base(proxy) { }
/// <summary> /// Initializes a new instance of the InputElement class. /// </summary> public InputElement(NetSelElementProxy proxy) : base(proxy) { }
/// <summary> /// Initializes a new instance of the ElementCollection class. /// </summary> /// <param name="proxy">Instance of NetSelElementProxy class.</param> public ElementCollection(NetSelElementProxy proxy) { _proxy = proxy; }