kif-framework / KIF

Keep It Functional - An iOS Functional Testing Framework
Other
6.2k stars 909 forks source link

iOS16 press on keyboard doesn't work #1267

Open azilbershtein opened 1 year ago

azilbershtein commented 1 year ago

Can't press on the native keyboard on iOS16 devices, using both accessibility id and label. Did anyone experienced that issue as well?

dostrander commented 1 year ago

@azilbershtein can you give a little context on how you are trying to press the native keyboard and if it's the standard keyboard or something more customized

azilbershtein commented 1 year ago

@dostrander Native keyboard, I've tried both ".tapView(withAccessibilityLabel: "search") and .tapView(withAccessibilityIdentifier: "Search") Failed with "Failure in child step: The step timed out after 30.00 seconds: Failed to find accessibility element with the label "search" (KIFFailureException)" Works perfectly with iOS15.5 Screen Shot 2022-09-20 at 16 00 32 Screen Shot 2022-09-20 at 16 01 31

dostrander commented 1 year ago

@azilbershtein Hmmm i'll check this out, since you are seeing this in the view debugger it seems like it's inside of the process still which is good. We may be doing something in KIF to somehow skip finding this. Let me look into it

dostrander commented 1 year ago

Just want to circle back that this is not such as easy fix unfortunately. We will need to figure out how to access this because the keyboard view is now (with iOS 16) not within the application so we can't access it with our current infrastructure

We will need to figure out another way around this, likely trying to reverse engineer XCUI to see if we can mimic that. This will take a little while, sorry for the delay

heidiproske-qz commented 1 year ago

We're also encountering this error. I tried to update our tests to run on an iOS 16 simulator but a number of our tests interacting with the keyboard (like the search button) failed. We'd previously been using iOS 15.5 simulators - so I'll stick with those in the meantime.