microsoft / EasyRepro

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

[BUG] Release Wave 2 2022: Sort not working as expected. #1324

Closed aliyoussefi closed 1 year ago

aliyoussefi 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

xrmApp.Grid.Sort("Account Name", "Sort Z to A"); 

not working as expected. Error: no such element: Unable to locate element: {"method":"xpath","selector":"//div[contains(@ref,'gridHeader')]//label[@title='Account Name']"} (Session info: chrome=105.0.5195.127)'

Special formatting / display
No

Code to reproduce

Expected behavior
Select correct column and sort ascending and descending

Screenshots

Additional context

aliyoussefi commented 1 year ago

Updated XPath and sample test. working as expected pending commit and merge

aliyoussefi commented 1 year ago

Completed with merge of PR #1325

kthirapatpibul commented 10 months ago

I'm getting the same issue again with Chrome 116 running the sample UCITestGetActiveGridItems()

OpenQA.Selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"xpath","selector":"//div[contains(@role,'columnheader')]//label[@title='Account Name']"}