Quantcast
Channel: Windows Desktop Development for Accessibility and Automation forum
Viewing all articles
Browse latest Browse all 585

AutomationElement Equals Implementation

$
0
0

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?


Viewing all articles
Browse latest Browse all 585

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>