microsoft / EasyRepro

Automated UI testing API for Dynamics 365
MIT License
518 stars 288 forks source link

How to open first row in the second grid in the same page #1020

Open rvmithun opened 3 years ago

rvmithun commented 3 years ago

When a page has more than one grid, then how can we select the first row in the second grid.

image

Here if I use xrmapp.Grid.OpenRecord(0) then it opens up the item in grid 1, is there a way to open grid 2 1st row?

Shakevg commented 3 years ago

@rvmithun you should use OpenSubGridRecord https://github.com/microsoft/EasyRepro/issues/934#issuecomment-670182266 https://github.com/microsoft/EasyRepro/blob/develop/Microsoft.Dynamics365.UIAutomation.Api.UCI/Elements/Subgrid.cs