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

GridPattern.GetItem(int row, int column) returning Null Exception #655

Open
kirankumar123456 opened this issue Aug 28, 2019 · 0 comments
Open

Comments

@kirankumar123456
Copy link

kirankumar123456 commented Aug 28, 2019

Hi Team,

we are part of Automation Testing using Test Stack White, and our WPF application is recently upgraded to 19.1 DevExpress, after that we unable to retrieve getItem() from Datagrid, as getting Null Exception... can any one help us on this. is there any alternative to this, or any workaround... below is our code

ListView dataGrid = window.Get<ListView>(SearchCriteria.ByAutomationId("AutoId_LogicContainerGrid"));
GridPattern gridPattern = dataGrid.AutomationElement.GetCurrentPattern(GridPattern.Pattern) as GridPattern;
AutomationElement elemtn = gridPattern.GetItem(1,1);

From the above step we are getting Null Exception, after upgrading the DevExpress to 19.1, where are as the same code is working fine with the older version of DevExpress

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

1 participant