コード例 #1
0
ファイル: ElementsBuilder.cs プロジェクト: levinine/NetSel
        /// <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));
        }
コード例 #2
0
ファイル: CustomElement.cs プロジェクト: levinine/NetSel
 public CustomElement(NetSelElementProxy proxy) : base(proxy)
 {
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the SelectWebElement class.
 /// </summary>
 public SelectWebElement(NetSelElementProxy proxy) : base(proxy)
 {
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the TableElement class.
 /// </summary>
 public TableElement(NetSelElementProxy proxy) : base(proxy)
 {
 }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the RadioButtonElement class.
 /// </summary>
 public RadioButtonElement(NetSelElementProxy proxy) : base(proxy)
 {
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the NetSelElement class.
 /// </summary>
 /// <param name="proxy">Instance of NetSelElementProxy class.</param>
 protected NetSelElement(NetSelElementProxy proxy)
 {
     _proxy = proxy;
 }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the CheckBoxElement class.
 /// </summary>
 public CheckBoxElement(NetSelElementProxy proxy) : base(proxy)
 {
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the FileUploadElement class.
 /// </summary>
 public FileUploadElement(NetSelElementProxy proxy) : base(proxy)
 {
 }
コード例 #9
0
ファイル: HiddenFieldElement.cs プロジェクト: levinine/NetSel
 /// <summary>
 /// Initializes a new instance of the HiddenFieldElement class.
 /// </summary>
 public HiddenFieldElement(NetSelElementProxy proxy) : base(proxy)
 {
 }
コード例 #10
0
 /// <summary>
 /// Initializes a new instance of the TextElement class.
 /// </summary>
 public TextElement(NetSelElementProxy proxy) : base(proxy)
 {
 }
コード例 #11
0
 /// <summary>
 /// Initializes a new instance of the InputElement class.
 /// </summary>
 public InputElement(NetSelElementProxy proxy) : base(proxy)
 {
 }
コード例 #12
0
ファイル: ElementCollection.cs プロジェクト: levinine/NetSel
 /// <summary>
 /// Initializes a new instance of the ElementCollection class.
 /// </summary>
 /// <param name="proxy">Instance of NetSelElementProxy class.</param>
 public ElementCollection(NetSelElementProxy proxy)
 {
     _proxy = proxy;
 }