Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Enable accessibility programmatically on load #78
It's a pain to have to enable accessibility in the Settings app before running tests. This code edits the relevant plist file automatically on load. I discovered it needs to be done pretty early, so it's done on class loading - calling on init didn't seem to work (plist content and timestamp did not change).
This seems to correctly enable accessibility, but the method to check whether accessibility was enabled returned true in both cases. However, tests failed without enabling accessibility, and passed with this method being called, so it seems to be working as expected (maybe we need a new way of checking accessibility being enabled?)
It works for the simulator only, and was testing with iOS 5.0 Simulator SDK.