What is EarlGrey?
EarlGrey is a native iOS UI automation test framework that enables you to write clear, concise tests.
EarlGrey has a built-in synchronization feature that forces test scripts to wait for UI events before attempting to interact with the application’s UI.
A comparable feature is provided, for example, in Google Espresso for Android, which makes the performance very smooth and fast because the script does not require any waits or other implementation that would slow down the test script.
Furthermore, because all phases of the test script explain how the test will go and the UI is synchronized with it, this type of implementation makes the test script more concise.
Another key feature of EarlGrey is that all UI element operations are limited to visible elements.
As previously said, this will give a quick and reliable way to guarantee UI testing is completed, like clicks, gestures, and other user interactions will not be completed if the UI element is not fully visible.
Details Source: https://www.testgrid.io/blog/ios-automation-testing-everything-you-need-to-know%EF%BF%BC/