You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we should make XenonElementsFinder extensible so that you can search elements by different ways but it should not pollute the XelementElementsFinder API? so rather than having different methods for searching elements differently we can ask for a spec argument and do accordingly.
For example, I want to search elements by 'attribute value contains', so solution 1 is to add following method
or change AttributeIs method to accept a spec. e.g.
AttributeIs(FindSpec spec)
and then use it like this
Click(where => where.Attribute( AttributeSpec.Name("data-modal").Value.Contains("test") ) );
/// or you can use .Exact , .BeginsWith, .EndsWith, DoesNotContain, etc.
this is just an example, we can discuss about api.
The text was updated successfully, but these errors were encountered:
we should make XenonElementsFinder extensible so that you can search elements by different ways but it should not pollute the XelementElementsFinder API? so rather than having different methods for searching elements differently we can ask for a spec argument and do accordingly.
For example, I want to search elements by 'attribute value contains', so solution 1 is to add following method
or change AttributeIs method to accept a spec. e.g.
and then use it like this
this is just an example, we can discuss about api.
The text was updated successfully, but these errors were encountered: