AutomationElement Equals Implementation


  • Hi,

    I'm writing automated UI tests using the Microsoft UI Automation Framework. I'd like to compare two AutomationElements that represent two DataGridRows, for example. However, I get mixed results here: sometimes the comparison works correctly, and sometimes the comparison returns false even when the elements are physically different (i.e, they contain different values). So, when comparing those two AutomationElements using the Equals method, what is the actual comparison happening behind the scenes? Is it just the RuntimeId or are additional properties involved?

    Monday, January 06, 2014 9:58 AM