@@ -60,44 +60,44 @@ public static TComponent CreateByAttributesContaining<TComponent>(this Component
6060 where TComponent : Component => element . Create < TComponent , FindAttributeContainingStrategy > ( Find . By . AttributeContaining ( attributeName , value ) , shouldCacheElement ) ;
6161
6262 public static ComponentsList < TComponent > CreateAllByIdEndingWith < TComponent > ( this Component element , string idEnding , bool shouldCacheFoundElements = false )
63- where TComponent : Component => new ComponentsList < TComponent > ( new FindIdEndingWithStrategy ( idEnding ) , element . WrappedElement , shouldCacheFoundElements ) ;
63+ where TComponent : Component => new ComponentsList < TComponent > ( new FindIdEndingWithStrategy ( idEnding ) , element , shouldCacheFoundElements ) ;
6464
6565 public static ComponentsList < TComponent > CreateAllByTag < TComponent > ( this Component element , string tag , bool shouldCacheFoundElements = false )
66- where TComponent : Component => new ComponentsList < TComponent > ( new FindTagStrategy ( tag ) , element . WrappedElement , shouldCacheFoundElements ) ;
66+ where TComponent : Component => new ComponentsList < TComponent > ( new FindTagStrategy ( tag ) , element , shouldCacheFoundElements ) ;
6767
6868 public static ComponentsList < TComponent > CreateAllById < TComponent > ( this Component element , string id , bool shouldCacheFoundElements = false )
69- where TComponent : Component => new ComponentsList < TComponent > ( new FindIdStrategy ( id ) , element . WrappedElement , shouldCacheFoundElements ) ;
69+ where TComponent : Component => new ComponentsList < TComponent > ( new FindIdStrategy ( id ) , element , shouldCacheFoundElements ) ;
7070
7171 public static ComponentsList < TComponent > CreateAllByIdContaining < TComponent > ( this Component element , string idContaining , bool shouldCacheFoundElements = false )
72- where TComponent : Component => new ComponentsList < TComponent > ( new FindIdContainingStrategy ( idContaining ) , element . WrappedElement , shouldCacheFoundElements ) ;
72+ where TComponent : Component => new ComponentsList < TComponent > ( new FindIdContainingStrategy ( idContaining ) , element , shouldCacheFoundElements ) ;
7373
7474 public static ComponentsList < TComponent > CreateAllByValueContaining < TComponent > ( this Component element , string valueEnding , bool shouldCacheFoundElements = false )
75- where TComponent : Component => new ComponentsList < TComponent > ( new FindValueContainingStrategy ( valueEnding ) , element . WrappedElement , shouldCacheFoundElements ) ;
75+ where TComponent : Component => new ComponentsList < TComponent > ( new FindValueContainingStrategy ( valueEnding ) , element , shouldCacheFoundElements ) ;
7676
7777 public static ComponentsList < TComponent > CreateAllByXpath < TComponent > ( this Component element , string xpath , bool shouldCacheFoundElements = false )
78- where TComponent : Component => new ComponentsList < TComponent > ( new FindXpathStrategy ( xpath ) , element . WrappedElement , shouldCacheFoundElements ) ;
78+ where TComponent : Component => new ComponentsList < TComponent > ( new FindXpathStrategy ( xpath ) , element , shouldCacheFoundElements ) ;
7979
8080 public static ComponentsList < TComponent > CreateAllByLinkText < TComponent > ( this Component element , string linkText , bool shouldCacheFoundElements = false )
81- where TComponent : Component => new ComponentsList < TComponent > ( new FindLinkTextStrategy ( linkText ) , element . WrappedElement , shouldCacheFoundElements ) ;
81+ where TComponent : Component => new ComponentsList < TComponent > ( new FindLinkTextStrategy ( linkText ) , element , shouldCacheFoundElements ) ;
8282
8383 public static ComponentsList < TComponent > CreateAllByLinkTextContaining < TComponent > ( this Component element , string linkTextContaining , bool shouldCacheFoundElements = false )
84- where TComponent : Component => new ComponentsList < TComponent > ( new FindLinkTextContainsStrategy ( linkTextContaining ) , element . WrappedElement , shouldCacheFoundElements ) ;
84+ where TComponent : Component => new ComponentsList < TComponent > ( new FindLinkTextContainsStrategy ( linkTextContaining ) , element , shouldCacheFoundElements ) ;
8585
8686 public static ComponentsList < TComponent > CreateAllByClass < TComponent > ( this Component element , string cssClass , bool shouldCacheFoundElements = false )
87- where TComponent : Component => new ComponentsList < TComponent > ( new FindClassStrategy ( cssClass ) , element . WrappedElement , shouldCacheFoundElements ) ;
87+ where TComponent : Component => new ComponentsList < TComponent > ( new FindClassStrategy ( cssClass ) , element , shouldCacheFoundElements ) ;
8888
8989 public static ComponentsList < TComponent > CreateAllByCss < TComponent > ( this Component element , string cssClass , bool shouldCacheFoundElements = false )
90- where TComponent : Component => new ComponentsList < TComponent > ( new FindCssStrategy ( cssClass ) , element . WrappedElement , shouldCacheFoundElements ) ;
90+ where TComponent : Component => new ComponentsList < TComponent > ( new FindCssStrategy ( cssClass ) , element , shouldCacheFoundElements ) ;
9191
9292 public static ComponentsList < TComponent > CreateAllByClassContaining < TComponent > ( this Component element , string cssClassContaining , bool shouldCacheFoundElements = false )
93- where TComponent : Component => new ComponentsList < TComponent > ( new FindClassContainingStrategy ( cssClassContaining ) , element . WrappedElement , shouldCacheFoundElements ) ;
93+ where TComponent : Component => new ComponentsList < TComponent > ( new FindClassContainingStrategy ( cssClassContaining ) , element , shouldCacheFoundElements ) ;
9494
9595 public static ComponentsList < TComponent > CreateAllByInnerTextContaining < TComponent > ( this Component element , string innerText , bool shouldCacheFoundElements = false )
96- where TComponent : Component => new ComponentsList < TComponent > ( new FindInnerTextContainsStrategy ( innerText ) , element . WrappedElement , shouldCacheFoundElements ) ;
96+ where TComponent : Component => new ComponentsList < TComponent > ( new FindInnerTextContainsStrategy ( innerText ) , element , shouldCacheFoundElements ) ;
9797
9898 public static ComponentsList < TComponent > CreateAllByNameEndingWith < TComponent > ( this Component element , string name , bool shouldCacheFoundElements = false )
99- where TComponent : Component => new ComponentsList < TComponent > ( new FindNameEndingWithStrategy ( name ) , element . WrappedElement , shouldCacheFoundElements ) ;
99+ where TComponent : Component => new ComponentsList < TComponent > ( new FindNameEndingWithStrategy ( name ) , element , shouldCacheFoundElements ) ;
100100
101101 public static ComponentsList < TComponent > CreateAllByAttributesContaining < TComponent > ( this Component element , string attributeName , string value , bool shouldCacheFoundElements = false )
102- where TComponent : Component => new ComponentsList < TComponent > ( new FindAttributeContainingStrategy ( attributeName , value ) , element . WrappedElement , shouldCacheFoundElements ) ;
102+ where TComponent : Component => new ComponentsList < TComponent > ( new FindAttributeContainingStrategy ( attributeName , value ) , element , shouldCacheFoundElements ) ;
103103}
0 commit comments