XCUIElement tap() event can tap the wrong element when overlaid
| Originator: | iFreeCarve | ||
| Number: | rdar://23166381 | Date Originated: | 10/19/2015 |
| Status: | Open | Resolved: | |
| Product: | Developer Tools | Product Version: | Xcode 7 |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: If an element is obscured by another element (such as a keyboard), attempts to .tap() the element will cause XCTest to tap the topmost element instead of producing an error. Steps to Reproduce: 1. Check out https://github.com/paypal/Illuminator/tree/be_bugz 2. `cd Example` 3. `pod install` 4. `open Illuminator.xcworkspace` 5. Select target "Illuminator-Example" 6. Cmd-U Expected Results: The test app shows a text field at the top of the view and a button at the bottom. Tapping the text field causes the keyboard to obscure the button. The text "test" is entered into the test field. Attempting to tap the obscured button should trigger an error in XCTest -- the test should fail. Actual Results: Trying to tap the underlying button taps the keyboard instead, which allows us to assert that the value of the text field is "testv" instead of "test". The test passes. Version: OSX 10.10.5 (14F27) Xcode Version 7.0 (7A220) Notes: Configuration: Attachments:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!