Skip to content

Commit 83add85

Browse files
committed
Merge pull request #242 from ilya-murzinov/Issue241
Fix #241
2 parents d844d49 + 6cbee4a commit 83add85

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/TestStack.White/UIItems/ListViewRow.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ public class ListViewRow : UIItem
1212
private readonly ListViewHeader header;
1313
private readonly AutomationElementFinder finder;
1414
protected ListViewRow() {}
15-
15+
16+
public ListViewRow(AutomationElement automationElement, ActionListener actionListener)
17+
: base(automationElement, actionListener)
18+
{
19+
header = null;
20+
finder = new AutomationElementFinder(automationElement);
21+
}
22+
1623
public ListViewRow(AutomationElement automationElement, ActionListener actionListener, ListViewHeader header)
1724
: base(automationElement, actionListener)
1825
{
@@ -75,4 +82,4 @@ public virtual void MultiSelect()
7582
keyboard.LeaveKey(KeyboardInput.SpecialKeys.CONTROL, actionListener);
7683
}
7784
}
78-
}
85+
}

0 commit comments

Comments
 (0)