How EarlGrey performs User-Like Interactions
masterEarlGrey simulates real user behavior by performing taps and swipes using app-level touch events rather than element-level event handlers.
Before every UI interaction, EarlGrey automatically asserts that the target elements are visible (via screenshot diffs) and not just present in the view hierarchy. This helps identify bugs that would affect actual users.