diff --git a/src/TestStack.White/UIItems/ListViewRow.cs b/src/TestStack.White/UIItems/ListViewRow.cs index d4357a51..14af5c6b 100644 --- a/src/TestStack.White/UIItems/ListViewRow.cs +++ b/src/TestStack.White/UIItems/ListViewRow.cs @@ -12,7 +12,14 @@ public class ListViewRow : UIItem private readonly ListViewHeader header; private readonly AutomationElementFinder finder; protected ListViewRow() {} - + + public ListViewRow(AutomationElement automationElement, ActionListener actionListener) + : base(automationElement, actionListener) + { + header = null; + finder = new AutomationElementFinder(automationElement); + } + public ListViewRow(AutomationElement automationElement, ActionListener actionListener, ListViewHeader header) : base(automationElement, actionListener) { @@ -75,4 +82,4 @@ public virtual void MultiSelect() keyboard.LeaveKey(KeyboardInput.SpecialKeys.CONTROL, actionListener); } } -} \ No newline at end of file +}