microsoft / EasyRepro

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

how to access Related Grid buttons #1319

Open haidykhaled opened 2 years ago

haidykhaled commented 2 years ago

i want to click on new reporting entity .. I added this line -> xrmApp.RelatedGrid.ClickCommand("New Reporting Entity"); but it clicks on the 3 dots menu button on the right i don't know why !! eventhough it worked in another page

image

Shakevg commented 2 years ago

haidykhaled I suppose it is not related GRID Did you try next xrmApp.Entity.SubGrid.ClickCommand("[NAME]", "New Reporting Entity");

Where [NAME] from id attribute of parent control of the grid id="dataSetRoot_[NAME]"

haidykhaled commented 2 years ago

@Shakevg Can you please till me what is the difference between the related grids and sub grid ?

Shakevg commented 2 years ago

haidykhaled Different in locators that used for each grid types. As I know that Related grid located on Related tab.