microsoft / EasyRepro

Automated UI testing API for Dynamics 365
MIT License
513 stars 285 forks source link

[BUG] Unable to open single record in grid #1367

Open simonjh77 opened 1 year ago

simonjh77 commented 1 year ago

Bug Report

Issues should only be created for items related to covered functionality.

Not covered functionality, feature requests, and questions should use the Feature Request or Question templates.

EasyRepro Version

UCI or Classic Web

Online or On Premise

Browser

Describe the bug

Server version: 9.2.23014.00168 Client version: 1.4.5327-2301.5

Use the search to return 1 record in the grid. Use xrmApp.Grid.OpenRecord(1) to try an open the record Code loops, generating this output Debug Trace: Found Legacy Read Only Grid. Found Legacy Read Only Grid. Found Legacy Read Only Grid.

Special formatting / display

Code to reproduce

private static readonly string _TestContactName = " Test_Generated Contact_3z";
...
...
            xrmApp.Grid.Search(_TestContactName);

            xrmApp.Grid.OpenRecord(1);

Expected behavior

Row to be opened for edit.

Screenshots

image

Additional context

pochopd commented 1 year ago

You should use xrmApp.Grid.OpenRecord(0); to select the first record.