TestStack / White

DEPRECATED - no longer actively maintained
Other
1.02k stars 485 forks source link

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

Open kirankumar123456 opened 4 years ago

kirankumar123456 commented 4 years ago

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\(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