Does anyone know of a solution to in-automation debugging of iOS real devices on a web app? When I pause an automation script during completion using debugger
or binding.pry
and then attempt to inspect the current page shown on the device using either Safari web inspector or the Chrome dev tools default through ios-webkit-debug-proxy, the link to the page is disabled.
If I perform a hard break from debugger
the page remains open, but I am still unable to inspect it. Is this a websocket in-use issue with webkit? Navigating to the pages outside of automation and inspecting them works fine, this is an inspection issue from within a working automation script.
I am using the latest stable version of appium, downloaded from source.
Ruby 2.1.1, Selenium, Watir
You could try the appium ruby console to see if that helps. I’m not sure why binding.pry wouldn’t work though.
binding.pry
actually does work, the problem is when I’m attempting to view the web page the pry has stopped on, the link is disabled in both Safari web inspector as well as the dev tools inspector through ios_webkit_debug_proxy. Under normal browser automation interaction, when I stop the ruby script via a pry, I can just move over and click inspect element on the paused web page and view what I need. I was wondering if the same sort of interaction is possible with real devices…