google / google/EarlGrey

Inject events via [[UIApplication sharedApplication] _enqueueHIDEvent:]

Open
#293 5 comments 0 reactions 1 assignee Claimed by @khandpur View on GitHub
P3
Dominant language
Objective-C
Stars
5.7k
Forks
737
Avg merge
1d 20h
Merged PRs (30d)
5

Description

Digging into EarlGrey again and all the technical crazy/beauty that's in there. This is such an awesome project.

So. Did some research around the use of `IOHIDEvent` since both KIF and EarlGrey need to use that, and found out that WebKit's TestRunner is doing that as well - but slightly differently than the approach on our testing tools here.

Check out this line specifically:
https://github.com/WebKit/webkit/blob/master/Tools/WebKitTestRunner/ios/HIDEventGenerator.mm#L265

The whole code and handling is interesting and while I don't know what the difference yet, is, see this issue as a TODO to investigate more. Can't promise I'll find the time but maybe one of you wants to take a look if this might be useful.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.