Katalon iOS web and hybrid testing stopped executing

Hi!

I have a problem with running my tests with were created for iOS hybrid app.

They were working some time, but then it stopped and I don’t know what the reason of it.

The thing is that it cannot anymore switch to web view.

Here is my configuration:

Device:

  • iPad Air Pro
  • iOS 12.1.1
  • Web inspector enabled
  • UI automation enabled
  • WDA app is trusted

Other

  • Katalon 6.1.5
  • Appium v1.8.2-beta
  • Xcode 9.2
  • Carthage 0.33.0
  • ios-deploy 1.9.4
  • ios-webkit-debug-proxy 1.8.4
  • libimobiledevice 1.2.0
  • usbmuxd 1.0.10

To debug this I tried following:

Seeing logs:

Sometimes it gives this error: “2019-05-20 14:19:03.914 WARN c.k.k.c.a.driver.AppiumDriverManager - Failed to start ios_webkit_debug_proxy on default port 27753” And after this it definitely is not working because wants to attach to port 0 then: “[debug] [iOS] Starting ios_webkit_debug_proxy at port 0 on device db9f7dd16a8343c50201711c98b5fe6bd7b904f9”. By the way this message “Failed to start ios_webkit_debug_proxy on default port 27753” is a bug. When I debugged how it went through AppiumDriverManager. It everytime trying to start ios_webkit_debug_proxy on some any free port with command like “ios_webkit_debug_proxy -c db9f7dd16a8343c50201711c98b5fe6bd7b904f9:50400”. And always it is not 27753 port. But with all this message is still the same - “Failed to start ios_webkit_debug_proxy on default port 27753”

And mostly it can start iOS-webkit-debug-proxy: “2019-05-20 14:25:53.584 INFO c.k.k.c.a.driver.AppiumDriverManager - ios_webkit_debug_proxy server started on port 64636”

But then it cannot connect to web view with messages:

“[iOS] Could not find any webviews yet, refreshing/retrying

[debug] [iOS] Retrieving contexts and views

[debug] [iOS] Selecting by url: true (expected url: ‘http://appium.io’)

[debug] [RemoteDebugger] Getting WebKitRemoteDebugger pageArray: localhost, 64636

[debug] [RemoteDebugger] Sending request to: http://localhost:64636/json

[debug] [RemoteDebugger] Page element JSON:

[debug] [iOS] No web frames found.

[debug] [iOS] Retrieving contexts and views

[debug] [iOS] Selecting by url: true (expected url: ‘http://appium.io’)

[debug] [RemoteDebugger] Getting WebKitRemoteDebugger pageArray: localhost, 64636

[debug] [RemoteDebugger] Sending request to: http://localhost:64636/json

[debug] [RemoteDebugger] Page element JSON:

[debug] [iOS] No web frames found.

[iOS] Could not find any webviews yet, refreshing/retrying”

I tried to connect at this time to http://localhost:64636 and seems that ios_webkit_debug_proxy is started because page is opened. But there are not any web views.

See screenshot:

As you can see on screenshot it also has some problems with encoding and cannot parse ’ character

Then I tried to start ios_webkit_debug_proxy manually with the same command as Katalon from terminal and it was started and I could see web views.
See screenshot:

As you can see now there are not problems with encoding and web view is working properly

A wanted to ask a question. Why can be this difference between how Katalon started os_webkit_debug_proxy and I manually. Is this can be something related to Xcode? Or this is Katalon bug or something else?

Also I tried new experimental Katalon version 6.2.0 and web view is woking ok. So in this case there are 2 different Katalon versions. And on one web view do not work and on another it does. By the way, I checked code of starting by Katalon ios_webkit_debug_proxy, and it is still the same in Katalon 6.2.0
And again question why this is so? Any guess?

Last question to Katalon support. When we can expect Katalon 6.2.0 release?
Thanks