Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#273 Add FindItemByParentContentAttribute; Add RadioButtonList_String…
…_FindItemByParentContentAttribute test
- Loading branch information
1 parent
d572cf7
commit 4d1af58
Showing
4 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/Atata/Attributes/Behaviors/FindItemByParentContentAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
namespace Atata | ||
{ | ||
/// <summary> | ||
/// Represents the behavior to find an item of <see cref="OptionList{T, TOwner}"/> control by parent element content using its XPath. | ||
/// </summary> | ||
public class FindItemByParentContentAttribute : FindItemByRelativeElementContentAttribute | ||
{ | ||
public const string ParentElementXPath = "parent::*"; | ||
|
||
public FindItemByParentContentAttribute() | ||
: base(ParentElementXPath) | ||
{ | ||
} | ||
|
||
public FindItemByParentContentAttribute(TermCase termCase) | ||
: base(ParentElementXPath, termCase) | ||
{ | ||
} | ||
|
||
public FindItemByParentContentAttribute(TermMatch match) | ||
: base(ParentElementXPath, match) | ||
{ | ||
} | ||
|
||
public FindItemByParentContentAttribute(TermMatch match, TermCase termCase) | ||
: base(ParentElementXPath, match, termCase) | ||
{ | ||
} | ||
} | ||
} |