Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cells in DataGrid with only a CheckBox are not recognized #174

Closed
SebastianMax opened this issue Nov 22, 2013 · 1 comment
Closed

Cells in DataGrid with only a CheckBox are not recognized #174

SebastianMax opened this issue Nov 22, 2013 · 1 comment

Comments

@SebastianMax
Copy link

Hi,

I have a DataGrid where a column represents a bool value. Hence, the template for the cell consists only of a CheckBox, signalling if the value is true or false.

When accessing the cells of any of the rows vial the "Cells" property of a ListViewRow this cell cannot be found.

I think the error can be found inside the "Cells" property:

get
{
actionListener.ActionPerforming(this)
var collection = finder.Descendants(AutomationSearchCondition.ByControlType(ControlType.Text));
return new ListViewCells(collection, actionsListener, header);
}

By extending the search condition to include a CheckBox the cell can be found. I'd like to commit a patch for this - any opinions?

Cheers,
Sebastian

@JakeGinnivan
Copy link
Member

Makes sense to me, id love a pull request. Let me know if you need any help.

Sent from my Windows Phone


From: SebastianMaxmailto:[email protected]
Sent: ý22/ý11/ý2013 05:59
To: TestStack/Whitemailto:[email protected]
Subject: [White] Cells in DataGrid with only a CheckBox are not recognized (#174)

Hi,

I have a DataGrid where a column represents a bool value. Hence, the template for the cell consists only of a CheckBox, signalling if the value is true or false.

When accessing the cells of any of the rows vial the "Cells" property of a ListViewRow this cell cannot be found.

I think the error can be found inside the "Cells" property:

get
{
actionListener.ActionPerforming(this)
var collection = finder.Descendants(AutomationSearchCondition.ByControlType(ControlType.Text));
return new ListViewCells(collection, actionsListener, header);
}

By extending the search condition to include a CheckBox the cell can be found. I'd like to commit a patch for this - any opinions?

Cheers,
Sebastian


Reply to this email directly or view it on GitHubhttps://github.com//issues/174.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants