xcuitest - unable to find elements in webview

I'm trying to troubleshoot an identical issue with one of our ios apps that involves webview where xcuitest freezes and fails to find any element on devices/simulators with ios 13.3.

  • Xcode version : 11.3
  • macos : Catalina
  • ios: 13.3

Since the source of this app cannot be disclosed, I created a sample app with google.com in its webview and could see the test freeze similar to the above problem. The

debugDescription
does not print the text fields, neither other elements from google's home page.

https://github.com/sabarishnarain/snarain-ios-webview

Appreciate any leads from anyone. I wish the answer to this will help me solve the original problem.

Same problem here, seems like on ios: 13.3 Webview element is empty :/ while on iOS 13.1 and 13.2 Webview comes with all the elements inside Wbview, any help ?


WebView, 0x282fc16c0, {{94.0, 20.0}, {320.0, 716.0}}

WebView, 0x282fc17a0, {{94.0, 20.0}, {320.0, 716.0}}

WebView, 0x282fc1880, {{94.0, 20.0}, {320.0, 716.0}}

Other, 0x282fc1960, {{381.0, 20.0}, {30.0, 716.0}}, label: 'Vertical scroll bar, 2 pages', value: 0%

Other, 0x282fc1a40, {{94.0, 703.0}, {320.0, 30.0}}, label: 'Horizontal scroll bar, 1 page', value: 0%

Image, 0x282fc1b20, {{102.0, 257.7}, {210.0, 220.7}},

I'm seeing this exact same problem. I'm an SDET asked to do research at my current position on whether I can write XCUITest automation against an internal hybrid app we have.


When I fired up our app inside my Xcode, I got output in my debugger identical to the above. This sure looks like a possible iOS/iPadOS 13.3 bug. Or possibly an Xcode 11.3.1 bug?


I'm about to confirm whether I can repro the problem with a 13.2 simulator.

To reply to my own reply:


I just confirmed that I cannot repro my problem if I build against a 13.2 simulator. Building against 13.2, I am able to get at the descendants of my webview just fine.


So other SDETs/QA Engineers out there, we may be tripping across a bug in 13.3 here, or possibly in Xcode 11.3.1. If you have the option, you may just have to test for now against 13.2.


We'll need to keep an eye on further Xcode updates to see if this issue gets resolved.

THey fixed it in 13.4 =) all is good and its working properly! 🙂

Does anyone know if this bug has returned? I'm having trouble getting ahold of Remove buttons in a UICollectionView after I enter Edit mode on the table.
xcuitest - unable to find elements in webview
 
 
Q