I have enabled developer extras for my WKWebView, but when I select "Inspect Element" from the dropdown, the inspector does not render properly. It's basically transparent, and the bottom half of the web view flickers and flashes, but no inspector content ever appears.
I can resize the window to be too small for the inspector, and then when I Inspect Element the inspector appears as an external window, and everything works properly. However, adding a window-resize/invoke-inspector/window-resize to every test cycle in rather painful.
Acceptable answers may include:
- Any way to fix the flickering in the WKWebView internal inspector,
- Swift/Objective-C code for invoking the external inspector window programmatically,
- JavaScript code for invoking the external inspector window programmatically
... or any other ideas for how to tackle this.
Seen under 10.14 (Mojave) and 10.15 (Catalina). Any help or ideas are greatly appreciated.