GithubHelp home page GithubHelp logo

appium-ios-inspector's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

appium-ios-inspector's Issues

Enhancement: add shortcut to reload

Would be sweet if there was an additional shortcut, e.g. the 'R' key to quickly reload the XML and the screenshot instead of hitting F5 to reload the full html.

Issues capturing view if it contains a high amount of complexity.

I've noticed issues for views containing a high amount of buttons, images, tabs, etc (iPad apps). When attempting to capture this view, iOS Appium Inspector freezes up and does not return any results (browser ultimately asks to kill process). I am not sure where I can find logs but will gladly provide. Thank you!

Question: Increase Timeout?

Hi, This is a question but is it possible to increase the timeout? I'm seeing it crash when I try to pull the view I have a break point set and I'm assuming due to the elements in view it's taking awhile to process..

Thanks!

Question: Way to get the full AppiumAUT XML tree?

Is there a way to get the full XML tree of the current AppiumAUT object?

Reason is that I'd like to paste the XML tree into an editor so I can play around with the XPath (in addition to what's already in the inspector in terms of the XPath Helper)

The XML is loaded anyway so there should be an easy way to get a handle to it, right?

Load so much time with iOS 11

I use it with iOS 10.3.3, it run and give me XPath very quickly. But in iOS 11, in screen which little element, it run ok, in screen more elements to get XPath, it can't give me XPath of this screen and wait to timeout (180s), i don't know why :(
I just switch to another browser as Chrome, Firefox, Safari (ver11)
Performance: iPAD air2, iOS 11

Unable to load inspector

Hi ,
I am trying to access the inspector.But getting the message Appium source could not be received afer 60 seconds.
Not sure what I am missing. Highly appreciate your help in this regard

No items when use appium-xcuitest-driver 2.5+

By default Appium 1.6.2 use appium-xcuitest-driver 2.4.2 and inspector works great.

But if update appium-xcuitest-driver to newest version 2.5.1 or 2.5.0. Inspector show no items in tree.

screen shot 2017-01-04 at 17 27 13

Can't load iOS INSPECTOR

Hello,

I'm starting apps and appium successfully, but when open file Appium-iOS-Inspector.html , have and error with red "Appium session at https://localhost:4723/wd/hub is unreachable. Make sure..."

Have any change with way to start it?

Thanks

Unable to locate some mobile elements using appium inspector

Hello Appium gurus,
I am having some trouble locating some elements on our app(Native iOS App) . I want to ask if anybody encountered similar issue and what is the solution for this.
Attached a screenshot of the element i am trying to locate using appium inspector.

In the attached screenshot, i am able to locate the XCUIElementTypeCell , However appium inspector is unable to locate the static text present inside it.

Kindly help as i am stuck on this issue.

screen shot 2017-06-29 at 1 08 21 pm

Unable to inspect due to page is loading while opening with browser

Hi ,
I am trying to inspect something on the iOS device but while opening the Appium-iOS-Inspector with the browsers ( Chrome / Firefox / Safari ), unable to do that because the page is loading in doing so.
Actually, the page is loading fine for other screens but the issue is only with a listing screen where the screen has product list.
Please help

popup message element can not be found

Env:

  1. Xcode: 8.3
  2. Appium1.6.5
  3. Appium-iOS-Inspector
  4. iphone7(ios10.2)

can not find element which is a pop up message.

in my application, when I click one button, there is a message will be pop up, and it has a Accessibility ID: leftPopupMessage , when I try to find this element by id or xpath, it can not be found.

Appium inspector timeout issue

Problem

we recently updated:

  • Xcode to 9.1
  • Appium to 1.7.1
  • iOS simulator to 11.0
  • Device - Ipad Air 2

and noticed the appium inspector timeout most of the time while loading the view.

screen shot 2017-10-25 at 12 24 18 pm

We never encountered so much delay or timeout in the previous version:

  • Xcode 8.3
  • Appium 1.6.5
  • iOS simulator 10.3
  • Device - Ipad Air 2

Is this a known issue ? Are you planning to push any changes ?

Appium session at http://localhost:4723/wd/hub is unreachable. Make sure your Appium test is running and click this message to retry.

Hi, I am not able run appium ios inspector at all. I ends up throwing this error always:
Appium session at http://localhost:4723/wd/hub is unreachable. Make sure your Appium test is running and click this message to retry.

whereas when I enter http://localhost:4723/wd/hub/sessions in browser i am getting response.
Everything was wrking fine with Apium 1.8 after I upgraded to 1.12 facing this issue.
Appium 1.12
IOS 12.1

Navigation bar not being identified after opening a html page from iOS App

Hi,

From my App settings screen, clicking on 'show user guide' opens a html page in app itself with 'cancel' button on navigation bar. But after opening html guide I am unable to identify any of the element on the screen. Please see below screenshot and could you help me to identify elements on that screen.

screen shot 2016-11-02 at 5 48 02 pm

[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"] [ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage' [ADB] Incorrect package and activity. Retrying. #660

i am facing this issue when i try to run the apk in appium. the activity name is splashscreen .but it is trying to get launchpage as the activity name. please check
Below is the desired capabalities
{
"platformName": "Android",
"platformVersion": "7.0",
"automationName": "uiautomator2",
"app": "/Users/sunil/apk/ntj.apk",
"deviceName": "9886335034414d584e",
"noReset": true,
"appActivity": "za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen"
}
below are the logs

[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Error: Error occured while starting App. Original error: 'za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen' never started
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:69:13)
at ADB.callee$0$0$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:101:9)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js๐Ÿ’ฏ21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
Error: Error occured while starting App. Original error: 'za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen' never started
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:69:13)
at ADB.callee$0$0$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:101:9)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js๐Ÿ’ฏ21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
[UiAutomator2] Deleting UiAutomator2 session
[UiAutomator2] Deleting UiAutomator2 server session
[JSONWP Proxy] Proxying [DELETE /] to [DELETE http://localhost:8200/wd/hub/session/3c52dadf-2b0d-4fdc-b67b-8da8a911ac15] with no body
[JSONWP Proxy] Got response with status 200: "{"sessionId":"3c52dadf-2b0d-4fdc-b67b-8da8a911ac15","status":0,"value":"Session deleted"}"
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","am","force-stop","za.co.venueengage.newtownjunction"]
[UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:.
[UiAutomator2] [UIAutomator2] Time: 26.035
[UiAutomator2] [UIAutomator2] OK (1 test)
[Logcat] Stopping logcat capture
[ADB] Removing forwarded port socket connection: 8200
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","forward","--remove","tcp:8200"]
[MJSONWP] Encountered internal error running command: Error: Error occured while starting App. Original error: 'za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen' never started
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:69:13)
at ADB.callee$0$0$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:101:9)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js๐Ÿ’ฏ21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
[HTTP] <-- POST /wd/hub/session 500 47104 ms - 265
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"platformName":"Android","noReset":true,"app":"/Users/sunil/apk/ntj.apk","automationName":"uiautomator2","platformVersion":"7.0","appActivity":"za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen","deviceName":"9886335034414d584e"},"capabilities":{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android"}}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"platformName":"Android","noReset":true,"app":"/Users/sunil/apk/ntj.apk","automationName":"uiautomator2","platformVersion":"7.0","appActivity":"za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen","deviceName":"9886335034414d584e"},null,{"firstMatch":[{}],"alwaysMatch":{"platformName":"Android"}}]
[BaseDriver] Event 'newSessionRequested' logged at 1523370991321 (20:06:31 GMT+0530 (IST))
[Appium] Merged W3C capabilities {"firstMatch":[{}],"alwaysMatch":{"platformName... into desiredCapabilities object {"platformName":"Android","noReset":true,"app":...
[Appium] Creating new AndroidUiautomator2Driver (v0.11.0) session
[Appium] Capabilities:
[Appium] platformName: Android
[Appium] noReset: true
[Appium] app: /Users/sunil/apk/ntj.apk
[Appium] automationName: uiautomator2
[Appium] platformVersion: 7.0
[Appium] appActivity: za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen
[Appium] deviceName: 9886335034414d584e
[BaseDriver] Session created with session id: 9a252951-9e7d-4028-a5da-9378cc074657
[BaseDriver] Using local app '/Users/sunil/apk/ntj.apk'
[UiAutomator2] Checking whether app is actually present
[AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 9.0.4
[ADB] Checking whether adb is present
[AndroidDriver] Retrieving device list
[ADB] Trying to find a connected android device
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[AndroidDriver] Looking for a device with Android '7.0'
[ADB] Setting device id to 9886335034414d584e
[ADB] Getting device platform version
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","getprop","ro.build.version.release"]
[ADB] Current device property 'ro.build.version.release': 7.0
[AndroidDriver] Using device: 9886335034414d584e
[ADB] Checking whether adb is present
[ADB] Setting device id to 9886335034414d584e
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","getprop","ro.build.version.sdk"]
[ADB] Current device property 'ro.build.version.sdk': 24
[ADB] Device API level: 24
[AndroidDriver] Parsing package and activity from app manifest
[ADB] Checking whether aapt is present
[ADB] Extracting package and launch activity from manifest
[ADB] badging package: za.co.venueengage.newtownjunction
[ADB] badging act: za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen
[AndroidDriver] Parsed package and activity are: za.co.venueengage.newtownjunction/za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen
[ADB] Getting device platform version
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","getprop","ro.build.version.release"]
[ADB] Current device property 'ro.build.version.release': 7.0
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","wm","size"]
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","wm","density"]
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","getprop","ro.product.model"]
[ADB] Current device property 'ro.product.model': SM-G930F
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","getprop","ro.product.manufacturer"]
[ADB] Current device property 'ro.product.manufacturer': samsung
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","am","force-stop","io.appium.uiautomator2.server"]
[ADB] Checking whether aapt is present
[ADB] Getting install status for io.appium.uiautomator2.server
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","pm","list","packages","io.appium.uiautomator2.server"]
[ADB] App is installed
[ADB] Getting install status for io.appium.uiautomator2.server.test
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","pm","list","packages","io.appium.uiautomator2.server.test"]
[ADB] App is installed
[ADB] Getting package info for io.appium.uiautomator2.server
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","package","io.appium.uiautomator2.server"]
[UiAutomator2] Waiting up to 20000ms for instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' to be available
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","pm","list","instrumentation"]
[UiAutomator2] Instrumentation 'io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner' available
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","wait-for-device"]
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","echo","ping"]
[AndroidDriver] setDeviceLanguageCountry requires language or country.
[AndroidDriver] Got language: 'undefined' and country: 'undefined'
[Logcat] Starting logcat capture
[AndroidDriver] Pushing settings apk to device...
[ADB] Getting install status for io.appium.settings
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","pm","list","packages","io.appium.settings"]
[ADB] App is installed
[ADB] Getting package info for io.appium.settings
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","package","io.appium.settings"]
[ADB] Checking whether aapt is present
[ADB] The installed 'io.appium.settings' package does not require upgrade (5 >= 5)
[ADB] Device API level: 24
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","package","io.appium.settings"]
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","pm","dump","io.appium.settings"]
[ADB] Got the following command chunks to execute: pm,grant,io.appium.settings,android.permission.WRITE_SETTINGS,;,pm,grant,io.appium.settings,android.permission.ACCESS_MOCK_LOCATION,;
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","pm","grant","io.appium.settings","android.permission.WRITE_SETTINGS",";","pm","grant","io.appium.settings","android.permission.ACCESS_MOCK_LOCATION",";"]
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","pm","grant","io.appium.settings","android.permission.WRITE_SETTINGS",";","pm","grant","io.appium.settings","android.permission.ACCESS_MOCK_LOCATION",";"]
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","ps"]
[ADB] Device API level: 24
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","appops","set","io.appium.settings","android:mock_location","allow"]
[AndroidDriver] Pushing unlock helper app to device...
[ADB] Getting install status for io.appium.unlock
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","pm","list","packages","io.appium.unlock"]
[ADB] App is installed
[ADB] Getting package info for io.appium.unlock
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","package","io.appium.unlock"]
[ADB] Checking whether aapt is present
[ADB] The installed 'io.appium.unlock' package does not require upgrade (2 >= 2)
[UiAutomator2] Forwarding UiAutomator2 Server port 6790 to 8200
[ADB] Forwarding system: 8200 to device: 6790
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","forward","tcp:8200","tcp:6790"]
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window"]
[AndroidDriver] Screen already unlocked, doing nothing
[AndroidDriver] Extracting strings from apk /Users/sunil/apk/ntj.apk undefined /var/folders/dl/mkbk0c9j7254xwfyrc6pjh7m0000gn/T/za.co.venueengage.newtownjunction
[ADB] Extracting strings for language: default
[ADB] Device API level: 24
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","getprop","persist.sys.locale"]
[ADB] Current device property 'persist.sys.locale': en-GB
[ADB] No strings.xml for language 'en', getting default strings.xml
[AndroidDriver] Could not get strings, continuing anyway
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","echo"]
[ADB] Checking app cert for /Users/sunil/apk/ntj.apk
[ADB] Starting '/Users/sunil/Library/Android/sdk/build-tools/27.0.3/apksigner' with args 'verify,/Users/sunil/apk/ntj.apk'
[ADB] '/Users/sunil/apk/ntj.apk' is already signed.
[AndroidDriver] Remote apk path is /data/local/tmp/4a20575c777f26b3673364e178e61dd8.apk
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","ls","/data/local/tmp/4a20575c777f26b3673364e178e61dd8.apk"]
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","ls","/data/local/tmp/4a20575c777f26b3673364e178e61dd8.apk"]
[AndroidDriver] Checking if app is installed
[ADB] Getting install status for za.co.venueengage.newtownjunction
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","pm","list","packages","za.co.venueengage.newtownjunction"]
[ADB] App is installed
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","am","force-stop","io.appium.uiautomator2.server"]
[UiAutomator2] Starting uiautomator2 server v0.3.0
[UiAutomator2] Running command: 'adb -s 9886335034414d584e shell am instrument -w io.appium.uiautomator2.server.test/android.support.test.runner.AndroidJUnitRunner'
[UiAutomator2] Waiting up to 20000ms for UiAutomator2 to be online...
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Proxying [GET /status] to [GET http://localhost:8200/wd/hub/status] with no body
[JSONWP Proxy] Got response with status 200: "{"sessionId":"SESSIONID","status":0,"value":"Status Invoked"}"
[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8200/wd/hub/session] with body: {"desiredCapabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"Android","noReset":true,"app":"/Users/sunil/apk/ntj.apk","automationName":"uiautomator2","platformVersion":"7.0","appActivity":"za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen","deviceName":"9886335034414d584e"},"platformName":"Android","noReset":true,"app":"/Users/sunil/apk/ntj.apk","automationName":"uiautomator2","platformVersion":"7.0","appActivity":"za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen","deviceName":"9886335034414d584e","deviceUDID":"9886335034414d584e","deviceScreenSize":"1440x2560","deviceScreenDensity":640,"deviceModel":"SM-G930F","deviceManufacturer":"samsung","appPackage":"za.co.venueengage.newtownjunction"}}
[JSONWP Proxy] Got response with status 200: {"sessionId":"f48eb4ee-baaa-4874-bbef-c3a27b78113e","status":0,"value":"Created Session"}
[UiAutomator2] UiAutomator2 did not start the activity we were waiting for, 'za.co.venueengage.newtownjunction/za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen'. Starting it ourselves
[ADB] Device API level: 24
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","am","start","-W","-n","za.co.venueengage.newtownjunction/za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen","-S"]
[ADB] Waiting up to 20000ms for activity matching pkg: 'za.co.venueengage.newtownjunction' and activity: 'za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen' to be focused
[ADB] Possible activities, to be checked: 'za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen'
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","dumpsys","window","windows"]
[ADB] Found package: 'za.co.venueengage.newtownjunction' and fully qualified activity name : 'za.co.venueengage.newtownjunction.ui.landing_page.LaunchPage'
[ADB] Incorrect package and activity. Retrying.
[ADB] Error: Error occured while starting App. Original error: 'za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen' never started
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:69:13)
at ADB.callee$0$0$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:101:9)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js๐Ÿ’ฏ21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
Error: Error occured while starting App. Original error: 'za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen' never started
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:69:13)
at ADB.callee$0$0$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:101:9)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js๐Ÿ’ฏ21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
[UiAutomator2] Deleting UiAutomator2 session
[UiAutomator2] Deleting UiAutomator2 server session
[JSONWP Proxy] Proxying [DELETE /] to [DELETE http://localhost:8200/wd/hub/session/f48eb4ee-baaa-4874-bbef-c3a27b78113e] with no body
[JSONWP Proxy] Got response with status 200: "{"sessionId":"f48eb4ee-baaa-4874-bbef-c3a27b78113e","status":0,"value":"Session deleted"}"
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","shell","am","force-stop","za.co.venueengage.newtownjunction"]
[Logcat] Stopping logcat capture
[ADB] Removing forwarded port socket connection: 8200
[ADB] Running '/Users/sunil/Library/Android/sdk/platform-tools/adb' with args: ["-P",5037,"-s","9886335034414d584e","forward","--remove","tcp:8200"]
[MJSONWP] Encountered internal error running command: Error: Error occured while starting App. Original error: 'za.co.venueengage.newtownjunction.ui.splashscreen.SplashScreen' never started
at Object.wrappedLogger.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:69:13)
at ADB.callee$0$0$ (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-adb/lib/tools/apk-utils.js:101:9)
at tryCatch (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40)
at GeneratorFunctionPrototype.invoke [as _invoke] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22)
at GeneratorFunctionPrototype.prototype.(anonymous function) [as throw] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js๐Ÿ’ฏ21)
at GeneratorFunctionPrototype.invoke (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)
at
[HTTP] <-- POST /wd/hub/session 500 45345 ms - 265
[UiAutomator2] [UIAutomator2] io.appium.uiautomator2.server.test.AppiumUiAutomator2Server:.
[UiAutomator2] [UIAutomator2] Time: 26.033
[UiAutomator2] [UIAutomator2] OK (1 test)

Scaling issue in inspector when running on iPhone 6plus (or Retina HD in general?)

When running on an iPhone 6plus the inspector seems to get confused on point sizes and dimensions. Not sure if this is a general Appium issue or something inside the inspector.

E.g. inside the app I have a UILabel whose frame takes the whole width of the screen (portrait mode) and has it's height set to 22. On an iPhone 6plus this rect is rect(0, 0, 414, 22) in point size

In the AppiumAUT xml this is delivered (correctly) as:
<UIAStaticText name="Whatโ€™s new?" label="Whatโ€™s new?" value="Whatโ€™s new?" dom="" enabled="true" valid="true" visible="true" hint="" path="/0/0/3" x="0" y="0" width="414" height="22"> </UIAStaticText>

Inside the inspector, the rect gets displayed as:
Rect: x=0, y=0, h=44, w=828
which looks as if the inspector assume 2x Retina display whereas on the 6plus it is 3x

Due to this, the screenshot is larger than expected and highlighting of elements uses 2x scaling instead of 3x so when hovering the tree the highlight indicator is offset by that scaling factor, e.g. x/y and and size of the rect is too small.

EDIT: ok, regarding the rect output in the Display section this is due to the hardwired const SCALE_FACTOR = 2; in Inspector.js#L23

For the highlighting it may be needed to adjust scale / scale_highlight in ide.js and take the Retina display scale factor into account

Enhancement - To evaluate predicates with this inspector.

We are enjoying this tool so much. However, now iOS Appium is giving us goosebumps with XPATH, we have to change our locator strategy to Predicates.

Any plan to enhance this tool to inspect iOS predicate strategy? If so, any ETA?

Appreciate your help.

1

[HTTP] --> POST /wd/hub/session
[HTTP] {"desiredCapabilities":{"AutomationName":"XCUITest","NewCommandTimeout":"3600","bundleId":"com.qihoo.video","deviceName":"iPhone Xs","platformName":"iOS","platformVersion":"12.3.1","udid":"00008020-001509692E88002E","useNewWDA":true,"xcodeSigningId":"iPhoneDeveloper","newCommandTimeout":0,"connectHardwareKeyboard":true}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"AutomationName":"XCUITest","NewCommandTimeout":"3600","bundleId":"com.qihoo.video","deviceName":"iPhone Xs","platformName":"iOS","platformVersion":"12.3.1","udid":"00008020-001509692E88002E","useNewWDA":true,"xcodeSigningId":"iPhoneDeveloper","newCommandTimeout":0,"connectHardwareKeyboard":true},null,null]
[BaseDriver] Event 'newSessionRequested' logged at 1570612334057 (17:12:14 GMT+0800 (CST))
[Appium] DeprecationWarning: 'automationName' capability was not provided. Future versions of Appium will require 'automationName' capability to be set for iOS sessions.
[Appium] Requested iOS support with version >= 10, using 'XCUITest' driver instead of UIAutomation-based driver, since the latter is unsupported on iOS 10 and up.
[Appium] Appium v1.13.0 creating new XCUITestDriver (v2.113.2) session
[Appium] Capabilities:
[Appium] AutomationName: XCUITest
[Appium] NewCommandTimeout: 3600
[Appium] bundleId: com.qihoo.video
[Appium] deviceName: iPhone Xs
[Appium] platformName: iOS
[Appium] platformVersion: 12.3.1
[Appium] udid: 00008020-001509692E88002E
[Appium] useNewWDA: true
[Appium] xcodeSigningId: iPhoneDeveloper
[Appium] newCommandTimeout: 0
[Appium] connectHardwareKeyboard: true
[BaseDriver] Creating session with MJSONWP desired capabilities: {"AutomationName":"XCUITest...
[BaseDriver] The following capabilities were provided, but are not recognized by appium: AutomationName, NewCommandTimeout.
[BaseDriver] Session created with session id: 85399dee-e23d-4e18-a197-cc2696195bf3
[XCUITest] Current user: 'mengxiangyu'
[XCUITest] Available devices: 00008020-001509692E88002E
[XCUITest] Creating iDevice object with udid '00008020-001509692E88002E'
[XCUITest] Determining device to run tests on: udid: '00008020-001509692E88002E', real device: true
[XCUITest] iOS SDK Version set to '13.0'
[BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1570612334611 (17:12:14 GMT+0800 (CST))
[BaseDriver] Event 'appConfigured' logged at 1570612334612 (17:12:14 GMT+0800 (CST))
[BaseDriver] Event 'resetStarted' logged at 1570612334612 (17:12:14 GMT+0800 (CST))
[XCUITest] Reset: running ios real device reset flow
[BaseDriver] Event 'resetComplete' logged at 1570612334613 (17:12:14 GMT+0800 (CST))
[iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[iOSLog] Starting iOS device log capture with: 'idevicesyslog'
[BaseDriver] Event 'logCaptureStarted' logged at 1570612334784 (17:12:14 GMT+0800 (CST))
[XCUITest] Setting up real device
[XCUITest] Calling: 'ios-deploy --exists --id 00008020-001509692E88002E --bundle_id com.qihoo.video'
[XCUITest] Stdout: '[....] Waiting for iOS device to be connected
[XCUITest] [....] Using 00008020-001509692E88002E (D321AP, D321AP, uknownos, unkarch) a.k.a. '็ฝ—่กŽ็š„ iPhone'.
[XCUITest] true
[XCUITest] '
[XCUITest] Using WDA path: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[XCUITest] Parsed BUILD_DIR configuration value: '/Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Build/Products'
[XCUITest] Got derived data root: '/Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs'
[XCUITest] Starting WebDriverAgent initialization with the synchronization key '/Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs'
[XCUITest] Capability 'useNewWDA' set to true, so uninstalling WDA before proceeding
[XCUITest] Shutting down sub-processes
[XCUITest] Removing WDA application from device
[BaseDriver] Event 'wdaUninstalled' logged at 1570612339548 (17:12:19 GMT+0800 (CST))
[XCUITest] Trying to start WebDriverAgent 1 times with 10000ms interval
[XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[BaseDriver] Event 'wdaStartAttempted' logged at 1570612339550 (17:12:19 GMT+0800 (CST))
[XCUITest] Launching WebDriverAgent on the device
[XCUITest] Carthage found: '/usr/local/bin/carthage'
[XCUITest] Killing running processes 'xcodebuild.*00008020-001509692E88002E, iproxy 8100' for the device 00008020-001509692E88002E...
[XCUITest] 'pgrep -nif xcodebuild.*00008020-001509692E88002E' didn't detect any matching processes. Return code: 1
[XCUITest] 'pgrep -nif iproxy 8100' didn't detect any matching processes. Return code: 1
[XCUITest] Starting iproxy to forward traffic from local port 8100 to device port 8100 over USB for the device 00008020-001509692E88002E
[XCUITest] iProxy is running and is listening on port #8100
[XCUITest] Beginning test with command 'xcodebuild build-for-testing test-without-building -project /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -derivedDataPath /Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs -destination id=00008020-001509692E88002E IPHONEOS_DEPLOYMENT_TARGET=12.3 GCC_TREAT_WARNINGS_AS_ERRORS=0 COMPILER_INDEX_STORE_ENABLE=NO' in directory '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Output from xcodebuild will only be logged if any errors are present there. To change this, use 'showXcodeLog' desired capability
[XCUITest] Waiting up to 60000ms for WebDriverAgent to start
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[XCUITest] Log file for xcodebuild test: /Users/mengxiangyu/Library/Developer/Xcode/DerivedData/WebDriverAgent-dikkwtrisltbeobjmfvpthwwekvs/Logs/Test/Test-WebDriverAgentRunner-2019.10.09_17-12-21-+0800.xcresult/Staging/2_Test/Diagnostics/WebDriverAgentRunner-EA1FA4FB-2D71-4101-BEEA-EF8C1953DBA4/WebDriverAgentRunner-D33A7573-300F-4A19-AD0C-018F36D01AC5/Session-WebDriverAgentRunner-2019-10-09_171221-x26xD0.log
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got an unexpected response: {"errno":"ECONNRESET","code":"ECONNRESET","syscall":"read"}
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
[WD Proxy] Got response with status 200: "{\n "value" : {\n "state" : "success",\n "os" : {\n "name" : "iOS",\n "version" : "12.3.1",\n "sdkVersion" : "13.0"\n },\n "ios" : {\n "simulatorVersion" : "12.3.1",\n "ip" : "10.17.34.228"\n },\n "build" : {\n "upgradedAt" : "1570592905010",\n "time" : "Oct 9 2019 16:35:16",\n "productBundleIdentifier" : "com.facebook.WebDriverAgentRunner"\n }\n },\n "sessionId" : "7086EFD4-63F8-4705-B3C5-35AD47B4C53B",\n "status" : 0\n}"
[WD Proxy] Determined that the downstream protocol for proxy is MJSONWP
[XCUITest] WebDriverAgent information:
[XCUITest] {
[XCUITest] "state": "success",
[XCUITest] "os": {
[XCUITest] "name": "iOS",
[XCUITest] "version": "12.3.1",
[XCUITest] "sdkVersion": "13.0"
[XCUITest] },
[XCUITest] "ios": {
[XCUITest] "simulatorVersion": "12.3.1",
[XCUITest] "ip": "10.17.34.228"
[XCUITest] },
[XCUITest] "build": {
[XCUITest] "upgradedAt": "1570592905010",
[XCUITest] "time": "Oct 9 2019 16:35:16",
[XCUITest] "productBundleIdentifier": "com.facebook.WebDriverAgentRunner"
[XCUITest] }
[XCUITest] }
[XCUITest] WebDriverAgent successfully started after 6627ms
[BaseDriver] Event 'wdaSessionAttempted' logged at 1570612346231 (17:12:26 GMT+0800 (CST))
[XCUITest] Sending createSession command to WDA
[WD Proxy] Matched '/session' to command name 'createSession'
[WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.qihoo.video","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}
[WD Proxy] Got response with status 200: {"value":{"sessionId":"07452CC7-FC7B-49EB-B3F7-800DDC3CF4F6","capabilities":{"device":"iphone","browserName":" ๅฝฑ่ง†ๅคงๅ…จ","sdkVersion":"12.3.1","CFBundleIdentifier":"com.qihoo.video"}},"sessionId":"07452CC7-FC7B-49EB-B3F7-800DDC3CF4F6","status":0}
[WD Proxy] Determined that the downstream protocol for proxy is MJSONWP
[BaseDriver] Event 'wdaSessionStarted' logged at 1570612349858 (17:12:29 GMT+0800 (CST))
[BaseDriver] Event 'wdaStarted' logged at 1570612349858 (17:12:29 GMT+0800 (CST))
[XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior.
[BaseDriver] Event 'orientationSet' logged at 1570612349859 (17:12:29 GMT+0800 (CST))
[Appium] New XCUITestDriver session created successfully, session 85399dee-e23d-4e18-a197-cc2696195bf3 added to master session list
[BaseDriver] Event 'newSessionStarted' logged at 1570612349860 (17:12:29 GMT+0800 (CST))
[MJSONWP (85399dee)] Cached the protocol value 'MJSONWP' for the new session 85399dee-e23d-4e18-a197-cc2696195bf3
[MJSONWP (85399dee)] Responding to client with driver.createSession() result: {"webStorageEnabled":false,"locationContextEnabled":false,"browserName":"","platform":"MAC","javascriptEnabled":true,"databaseEnabled":false,"takesScreenshot":true,"networkConnectionEnabled":false,"AutomationName":"XCUITest","NewCommandTimeout":"3600","bundleId":"com.qihoo.video","deviceName":"iPhone Xs","platformName":"iOS","platformVersion":"12.3.1","udid":"00008020-001509692E88002E","useNewWDA":true,"xcodeSigningId":"iPhoneDeveloper","newCommandTimeout":0,"connectHardwareKeyboard":true}
[HTTP] <-- POST /wd/hub/session 200 15806 ms - 566
[HTTP]
[iProxy] recv failed: Connection reset by peer
[iProxy] recv failed: Operation not permitted
[HTTP] --> POST /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/context
[HTTP] {"name":"NATIVE_APP"}
[MJSONWP (85399dee)] Calling AppiumDriver.setContext() with args: ["NATIVE_APP","85399dee-e23d-4e18-a197-cc2696195bf3"]
[XCUITest] Executing command 'setContext'
[iOS] Attempting to set context to 'NATIVE_APP'
[MJSONWP (85399dee)] Responding to client with driver.setContext() result: null
[HTTP] <-- POST /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/context 200 4 ms - 76
[HTTP]
[HTTP] --> GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/window/current/size
[HTTP] {}
[MJSONWP (85399dee)] Calling AppiumDriver.getWindowSize() with args: ["current","85399dee-e23d-4e18-a197-cc2696195bf3"]
[XCUITest] Executing command 'getWindowSize'
[HTTP] --> GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/screenshot
[HTTP] {}
[MJSONWP (85399dee)] Calling AppiumDriver.getScreenshot() with args: ["85399dee-e23d-4e18-a197-cc2696195bf3"]
[XCUITest] Executing command 'getScreenshot'
[HTTP] --> GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/source
[HTTP] {}
[MJSONWP (85399dee)] Calling AppiumDriver.getPageSource() with args: ["85399dee-e23d-4e18-a197-cc2696195bf3"]
[XCUITest] Executing command 'getPageSource'
[WD Proxy] Proxying [GET /window/size] to [GET http://localhost:8100/session/07452CC7-FC7B-49EB-B3F7-800DDC3CF4F6/window/size] with no body
[iProxy] recv failed: Connection reset by peer
[iProxy] recv failed: Operation not permitted
[WD Proxy] Got response with status 200: "{\n "value" : "-[XCApplicationQuery elementSnapshotForDebugDescription]: unrecognized selector sent to instance 0x282edb780\n\n(\n\t0 CoreFoundation 0x00000001bc30e3c0 + 256\n\t1 libobjc.A.dylib 0x00000001bb513d00 objc_exception_throw + 60\n\t2 CoreFoundation 0x00000001bc2269f8 + 0\n\t3 CoreFoundation 0x00000001bc313d54 + 1412\n\t4 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96\n\t5 WebDriverAgentLib 0x000000010626cc44 -[XCUIElement(FBUtilities) fb_lastSnapshot] + 60\n\t6 WebDriverAgentLib 0x0000000106264718 -[XCUIElement(WebDriverAttributesForwarding) fb_snapshotForAttributeName:] + 756\n\t7 WebDriverAgentLib 0x0000000106264948 -[XCUIElement(WebDriverAttributesForwarding) forwardingTargetForSelector:] + 168\n\t8 CoreFoundation 0x00000001bc31...
[MJSONWP] Matched JSONWP error code 13 to UnknownError
[XCUITest] Taking screenshot with WDA
[WD Proxy] Matched '/screenshot' to command name 'getScreenshot'
[WD Proxy] Proxying [GET /screenshot] to [GET http://localhost:8100/session/07452CC7-FC7B-49EB-B3F7-800DDC3CF4F6/screenshot] with no body
[MJSONWP (85399dee)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: -[XCApplicationQuery elementSnapshotForDebugDescription]: unrecognized selector sent to instance 0x282edb780
[MJSONWP (85399dee)]
[MJSONWP (85399dee)] (
[MJSONWP (85399dee)] 0 CoreFoundation 0x00000001bc30e3c0 + 256
[MJSONWP (85399dee)] 1 libobjc.A.dylib 0x00000001bb513d00 objc_exception_throw + 60
[MJSONWP (85399dee)] 2 CoreFoundation 0x00000001bc2269f8 + 0
[MJSONWP (85399dee)] 3 CoreFoundation 0x00000001bc313d54 + 1412
[MJSONWP (85399dee)] 4 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96
[MJSONWP (85399dee)] 5 WebDriverAgentLib 0x000000010626cc44 -[XCUIElement(FBUtilities) fb_lastSnapshot] + 60
[MJSONWP (85399dee)] 6 WebDriverAgentLib 0x0000000106264718 -[XCUIElement(WebDriverAttributesForwarding) fb_snapshotForAttributeName:] + 756
[MJSONWP (85399dee)] 7 WebDriverAgentLib 0x0000000106264948 -[XCUIElement(WebDriverAttributesForwarding) forwardingTargetForSelector:] + 168
[MJSONWP (85399dee)] 8 CoreFoundation 0x00000001bc313874 + 164
[MJSONWP (85399dee)] 9 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96
[MJSONWP (85399dee)] 10 WebDriverAgentLib 0x00000001062891fc +[FBElementCommands handleGetWindowSize:] + 128
[MJSONWP (85399dee)] 11 WebDriverAgentLib 0x00000001062572b4 -[FBRoute_TargetAction mountRequest:intoResponse:] + 220
[MJSONWP (85399dee)] 12 WebDriverAgentLib 0x00000001062462f0 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 504
[MJSONWP (85399dee)] 13 RoutingHTTPServer 0x000000010633a178 -[RoutingHTTPServer handleRoute:withRequest:response:] + 144
[MJSONWP (85399dee)] 14 RoutingHTTPServer 0x000000010633a934 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 44
[MJSONWP (85399dee)] 15 libdispatch.dylib 0x00000001bbd1d884 + 20
[MJSONWP (85399dee)] 16 libdispatch.dylib 0x00000001bbd2a4e0 + 96
[MJSONWP (85399dee)] 17 libdispatch.dylib 0x00000001bbd1d884 + 20
[MJSONWP (85399dee)] 18 libdispatch.dylib 0x00000001bbd2973c _dispatch_main_queue_callback_4CF + 1012
[MJSONWP (85399dee)] 19 CoreFoundation 0x00000001bc29e024 + 16
[MJSONWP (85399dee)] 20 CoreFoundation 0x00000001bc298cd4 + 1888
[MJSONWP (85399dee)] 21 CoreFoundation 0x00000001bc298254 CFRunLoopRunSpecific + 452
[MJSONWP (85399dee)] 22 Foundation 0x00000001bcc7804c + 304
[MJSONWP (85399dee)] 23 WebDriverAgentLib 0x0000000106244d90 -[FBWebServer startServing] + 440
[MJSONWP (85399dee)] 24 WebDriverAgentRunner 0x0000000102f77bd4 -[UITestingUITests testRunner] + 120
[MJSONWP (85399dee)] 25 CoreFoundation 0x00000001bc315d04 + 148
[MJSONWP (85399dee)] 26 CoreFoundation 0x00000001bc1f1ea8 + 324
[MJSONWP (85399dee)] 27 XCTest 0x00000001026aefdc __24-[XCTestCase invokeTest]_block_invoke_2.218 + 72
[MJSONWP (85399dee)] 28 XCTest 0x000000010272248c -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:] + 76
[MJSONWP (85399dee)] 29 XCTest 0x00000001026b9454 -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:] + 116
[MJSONWP (85399dee)] 30 XCTest 0x00000001026aef60 __24-[XCTestCase invokeTest]_block_invoke.212 + 204
[MJSONWP (85399dee)] 31 XCTest 0x0000000102707a10 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72
[MJSONWP (85399dee)] 32 XCTest 0x0000000102707920 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112
[MJSONWP (85399dee)] 33 XCTest 0x00000001026ae9c8 __24-[XCTestCase invokeTest]_block_invoke + 1092
[MJSONWP (85399dee)] 34 XCTest 0x000000010270e848 -[XCUITestContext performInScope:] + 136
[MJSONWP (85399dee)] 35 XCTest 0x00000001026ae498 -[XCTestCase testContextPerformInScope:] + 188
[MJSONWP (85399dee)] 36 XCTest 0x00000001026ae570 -[XCTestCase invokeTest] + 156
[MJSONWP (85399dee)] 37 XCTest 0x00000001026b037c __26-[XCTestCase performTest:]_block_invoke_2 + 48
[MJSONWP (85399dee)] 38 XCTest 0x0000000102707a10 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72
[MJSONWP (85399dee)] 39 XCTest 0x0000000102707920 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112
[MJSONWP (85399dee)] 40 XCTest 0x00000001026b0290 __26-[XCTestCase performTest:]_block_invoke.352 + 112
[MJSONWP (85399dee)] 41 XCTest 0x000000010271ae2c +[XCTContext runInContextForTestCase:block:] + 216
[MJSONWP (85399dee)] 42 XCTest 0x00000001026afa2c -[XCTestCase performTest:] + 676
[MJSONWP (85399dee)] 43 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64
[MJSONWP (85399dee)] 44 XCTest 0x00000001026aa1f4 __27-[XCTestSuite performTest:]_block_invoke + 284
[MJSONWP (85399dee)] 45 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
[MJSONWP (85399dee)] 46 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344
[MJSONWP (85399dee)] 47 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64
[MJSONWP (85399dee)] 48 XCTest 0x00000001026aa1f4 __27-[XCTestSuite performTest:]_block_invoke + 284
[MJSONWP (85399dee)] 49 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
[MJSONWP (85399dee)] 50 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344
[MJSONWP (85399dee)] 51 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64
[MJSONWP (85399dee)] 52 XCTest 0x00000001026aa1f4 __27-[XCTestSuite performTest:]_block_invoke + 284
[MJSONWP (85399dee)] 53 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
[MJSONWP (85399dee)] 54 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344
[MJSONWP (85399dee)] 55 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64
[MJSONWP (85399dee)] 56 XCTest 0x000000010272d338 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 180
[MJSONWP (85399dee)] 57 XCTest 0x000000010272d444 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 116
[MJSONWP (85399dee)] 58 XCTest 0x00000001026c3bf8 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 520
[MJSONWP (85399dee)] 59 XCTest 0x000000010272d0ec -[XCTTestRunSession runTestsAndReturnError:] + 624
[MJSONWP (85399dee)] 60 XCTest 0x000000010268da04 -[XCTestDriver runTestsAndReturnError:] + 444
[MJSONWP (85399dee)] 61 XCTest 0x00000001027171b4 _XCTestMain + 2404
[MJSONWP (85399dee)] 62 WebDriverAgentRunner-Runner 0x000000010223f8e8 -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0
[MJSONWP (85399dee)] 63 WebDriverAgentRunner-Runner 0x000000010223f7f0 _XCTRunnerRunTests + 0
[MJSONWP (85399dee)] 64 CoreFoundation 0x00000001bc29e27c + 28
[MJSONWP (85399dee)] 65 CoreFoundation 0x00000001bc29db64 + 276
[MJSONWP (85399dee)] 66 CoreFoundation 0x00000001bc298964 + 1008
[MJSONWP (85399dee)] 67 CoreFoundation 0x00000001bc298254 CFRunLoopRunSpecific + 452
[MJSONWP (85399dee)] 68 GraphicsServices 0x00000001be4d7d8c GSEventRunModal + 108
[MJSONWP (85399dee)] 69 UIKitCore 0x00000001e95e04c0 UIApplicationMain + 216
[MJSONWP (85399dee)] 70 WebDriverAgentRunner-Runner 0x000000010223fab4 main + 192
[MJSONWP (85399dee)] 71 libdyld.dylib 0x00000001bbd54fd8 + 4
[MJSONWP (85399dee)] )
[MJSONWP (85399dee)] at errorFromMJSONWPStatusCode (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:789:10)
[MJSONWP (85399dee)] at ProxyRequestError.errorFromMJSONWPStatusCode [as getActualError] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:683:14)
[MJSONWP (85399dee)] at JWProxy.getActualError [as command] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:235:19)
[HTTP] <-- GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/window/current/size 500 73 ms - 7749
[HTTP]
[WD Proxy] Got response with status 200: "{\n "value" : "iVBORw0KGgoAAAANSUhEUgAABGUAAAmECAIAAAAjR0TuAAAAAXNSR0IArs4c6QAA\r\nABxpRE9UAAAAAgAAAAAAAATCAAAAKAAABMIAAATCAA98pM2gOucAAEAASURBVHgB\r\n7J1nVxtJ17Xn\/396n3vGgZxzNDnnHB1AOaCMEFG5uyX1u6tLFG0cBtt4jM1ea69a\r\npUbI6Jox7kun6tRfr1x5hgRIgARIgARI4AcJ1HiKKrVeTaXOp9f7jYZAqemk0hwy\r\nW8Jma0SkP1LsCxcGQoWBYH7wpDAS1sYjxmSkNBE2psOlmUh5NlqZjZRnwiWMyFTC\r\nmIzryERMm4xqE5HiVFhHpkN3mQsZKtPRgspktIBMxETG4yKjVkYSOZXJqIFMRHRE\r\nvrJ9tP8pcm7\/KuckQAJfJyD\/Zj18fBPVZIYjRXvkxZGYfi8Pf2U+8zsI\/PWD\/zzw\r\n20mABEiABEiABL5CABIFd4I13VOm3nChL6RZyqQJXwoZY9CVaMXypcp0rDIbNWFN\r\nM6EK9Gk2bEKTZMajRQS+hH\/15S2aFJiZsIE80JeqypTIjVrKhJG+9PX7XX6VBH6E\r\nwLfeo3\/Wl9TFe7KEh9\/6+nz+NxGgL7G8RgIkQAIkQAKPQOCFI\/vZvHTmYFPSmlBo\r\nagyWUWhCukKF7hOt+6TQe6JDnAZDpeGwMRqujIVLkxFzMmZORc3JSGUqJMbpsDkW\r\n1WXGIzqi\/rGH50xHRKQvqXE6oqmgHmXlrsqkCk1SnDDKF3nIHSHrSw+hxOeQgJ2A\r\n+gv7wIlSo89O6EsPxPhYT6MvPcK\/kV\/5WJFfIgESIAESeCYElCz9c5yxB9elMr12\r\nF1StCeWmZl+21Ztv8+U6fMXOQKE7oPcFtIFA6c1JaSRkCnGKmGOhyljIHEdxKWKO\r...
[iProxy] recv failed: Connection reset by peer
[iProxy] recv failed: Operation not permitted
[WD Proxy] Matched '/source' to command name 'getPageSource'
[WD Proxy] Proxying [GET /source] to [GET http://localhost:8100/session/07452CC7-FC7B-49EB-B3F7-800DDC3CF4F6/source] with no body
[MJSONWP (85399dee)] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAABGUAAAmECAIAAAAjR0TuAAAAAXNSR0IArs4c6QAA\r\nABxpRE9UAAAAAgAAAAAAAATCAAAAKAAABMIAAATCAA98pM2gOucAAEAASURBVHgB\r\n7J1nVxtJ17Xn/396n3vGgZxzNDnnHB1AOaCMEFG5uyX1u6tLFG0cBtt4jM1ea69a\r\npUbI6Jox7kun6tRfr1x5hgRIgARIgARI4AcJ1HiKKrVeTaXOp9f7jYZAqemk0hwy\r\nW8Jma0SkP1LsCxcGQoWBYH7wpDAS1sYjxmSkNBE2psOlmUh5NlqZjZRnwiWMyFTC\r\nmIzryERMm4xqE5HiVFhHpkN3mQsZKtPRgspktIBMxETG4yKjVkYSOZXJqIFMRHRE\r\nvrJ9tP8pcm7/KuckQAJfJyD/Zj18fBPVZIYjRXvkxZGYfi8Pf2U+8zsI/PWD/zzw\r\n20mABEiABEiABL5CABIFd4I13VOm3nChL6RZyqQJXwoZY9CVaMXypcp0rDIbNWFN\r\nM6EK9Gk2bEKTZMajRQS+hH/15S2aFJiZsIE80JeqypTIjVrKhJG+9PX7XX6VBH6E\r\nwLfeo3/Wl9TFe7KEh9/6+nz+NxGgL7G8RgIkQAIkQAKPQOCFI/vZvHTmYFPSmlBo\r\nagyWUWhCukKF7hOt+6TQe6JDnAZDpeGwMRqujIVLkxFzMmZORc3JSGUqJMbpsDkW\r\n1WXGIzqi/rGH50xHRKQvqXE6oqmgHmXlrsqkCk1SnDDKF3nIHSHrSw+hxOeQgJ2A\r\n+gv7wIlSo89O6EsPxPhYT6MvPcK/kV/5WJFfIgESIAESeCYElCz9c5yxB9elMr12\r\nF1StCeWmZl+21Ztv8+U6fMXOQKE7oPcFtIFA6c1JaSRkCnGKmGOhyljIHEdxKWKO\r\nREUBSo4Qp4loaSJqTMVKKsqapDspWcLE7kv2tXlyhZ4c6Uv2u1vOSeBxCXzrjbsy\r\n...
[HTTP] <-- GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/screenshot 200 360 ms - 1968146
[HTTP]
[WD Proxy] Got response with status 200: "{\n "value" : "-[FBApplication resolve]: unrecognized selector sent to instance 0x2821d0230\n\n(\n\t0 CoreFoundation 0x00000001bc30e3c0 + 256\n\t1 libobjc.A.dylib 0x00000001bb513d00 objc_exception_throw + 60\n\t2 CoreFoundation 0x00000001bc2269f8 + 0\n\t3 CoreFoundation 0x00000001bc313d54 + 1412\n\t4 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96\n\t5 WebDriverAgentLib 0x000000010626cccc -[XCUIElement(FBUtilities) fb_snapshotWithAttributes] + 96\n\t6 WebDriverAgentLib 0x000000010623e70c +[FBXPath writeXmlWithRootElement:indexPath:elementStore:includedAttributes:writer:] + 912\n\t7 WebDriverAgentLib 0x000000010623db10 +[FBXPath xmlRepresentationWithRootElement:writer:elementStore:query:] + 436\n\t8 WebDriverAgentLib 0x000000010623cf60 +[FBXPath x...
[MJSONWP] Matched JSONWP error code 13 to UnknownError
[iProxy] recv failed: Connection reset by peer
[iProxy] recv failed: Operation not permitted
[MJSONWP (85399dee)] Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: -[FBApplication resolve]: unrecognized selector sent to instance 0x2821d0230
[MJSONWP (85399dee)]
[MJSONWP (85399dee)] (
[MJSONWP (85399dee)] 0 CoreFoundation 0x00000001bc30e3c0 + 256
[MJSONWP (85399dee)] 1 libobjc.A.dylib 0x00000001bb513d00 objc_exception_throw + 60
[MJSONWP (85399dee)] 2 CoreFoundation 0x00000001bc2269f8 + 0
[MJSONWP (85399dee)] 3 CoreFoundation 0x00000001bc313d54 + 1412
[MJSONWP (85399dee)] 4 CoreFoundation 0x00000001bc315b50 _CF_forwarding_prep_0 + 96
[MJSONWP (85399dee)] 5 WebDriverAgentLib 0x000000010626cccc -[XCUIElement(FBUtilities) fb_snapshotWithAttributes] + 96
[MJSONWP (85399dee)] 6 WebDriverAgentLib 0x000000010623e70c +[FBXPath writeXmlWithRootElement:indexPath:elementStore:includedAttributes:writer:] + 912
[MJSONWP (85399dee)] 7 WebDriverAgentLib 0x000000010623db10 +[FBXPath xmlRepresentationWithRootElement:writer:elementStore:query:] + 436
[MJSONWP (85399dee)] 8 WebDriverAgentLib 0x000000010623cf60 +[FBXPath xmlStringWithRootElement:] + 108
[MJSONWP (85399dee)] 9 WebDriverAgentLib 0x000000010624ac8c -[XCUIApplication(FBHelpers) fb_xmlRepresentation] + 64
[MJSONWP (85399dee)] 10 WebDriverAgentLib 0x00000001062696b0 +[FBDebugCommands handleGetSourceCommand:] + 504
[MJSONWP (85399dee)] 11 WebDriverAgentLib 0x00000001062572b4 -[FBRoute_TargetAction mountRequest:intoResponse:] + 220
[MJSONWP (85399dee)] 12 WebDriverAgentLib 0x00000001062462f0 __37-[FBWebServer registerRouteHandlers:]_block_invoke + 504
[MJSONWP (85399dee)] 13 RoutingHTTPServer 0x000000010633a178 -[RoutingHTTPServer handleRoute:withRequest:response:] + 144
[MJSONWP (85399dee)] 14 RoutingHTTPServer 0x000000010633a934 __72-[RoutingHTTPServer routeMethod:withPath:parameters:request:connection:]_block_invoke + 44
[MJSONWP (85399dee)] 15 libdispatch.dylib 0x00000001bbd1d884 + 20
[MJSONWP (85399dee)] 16 libdispatch.dylib 0x00000001bbd2a4e0 + 96
[MJSONWP (85399dee)] 17 libdispatch.dylib 0x00000001bbd1d884 + 20
[MJSONWP (85399dee)] 18 libdispatch.dylib 0x00000001bbd2973c _dispatch_main_queue_callback_4CF + 1012
[MJSONWP (85399dee)] 19 CoreFoundation 0x00000001bc29e024 + 16
[MJSONWP (85399dee)] 20 CoreFoundation 0x00000001bc298cd4 + 1888
[MJSONWP (85399dee)] 21 CoreFoundation 0x00000001bc298254 CFRunLoopRunSpecific + 452
[MJSONWP (85399dee)] 22 Foundation 0x00000001bcc7804c + 304
[MJSONWP (85399dee)] 23 WebDriverAgentLib 0x0000000106244d90 -[FBWebServer startServing] + 440
[MJSONWP (85399dee)] 24 WebDriverAgentRunner 0x0000000102f77bd4 -[UITestingUITests testRunner] + 120
[MJSONWP (85399dee)] 25 CoreFoundation 0x00000001bc315d04 + 148
[MJSONWP (85399dee)] 26 CoreFoundation 0x00000001bc1f1ea8 + 324
[MJSONWP (85399dee)] 27 XCTest 0x00000001026aefdc __24-[XCTestCase invokeTest]_block_invoke_2.218 + 72
[MJSONWP (85399dee)] 28 XCTest 0x000000010272248c -[XCTMemoryChecker _assertInvalidObjectsDeallocatedAfterScope:] + 76
[MJSONWP (85399dee)] 29 XCTest 0x00000001026b9454 -[XCTestCase assertInvalidObjectsDeallocatedAfterScope:] + 116
[MJSONWP (85399dee)] 30 XCTest 0x00000001026aef60 __24-[XCTestCase invokeTest]_block_invoke.212 + 204
[MJSONWP (85399dee)] 31 XCTest 0x0000000102707a10 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72
[MJSONWP (85399dee)] 32 XCTest 0x0000000102707920 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112
[MJSONWP (85399dee)] 33 XCTest 0x00000001026ae9c8 __24-[XCTestCase invokeTest]_block_invoke + 1092
[MJSONWP (85399dee)] 34 XCTest 0x000000010270e848 -[XCUITestContext performInScope:] + 136
[MJSONWP (85399dee)] 35 XCTest 0x00000001026ae498 -[XCTestCase testContextPerformInScope:] + 188
[MJSONWP (85399dee)] 36 XCTest 0x00000001026ae570 -[XCTestCase invokeTest] + 156
[MJSONWP (85399dee)] 37 XCTest 0x00000001026b037c __26-[XCTestCase performTest:]_block_invoke_2 + 48
[MJSONWP (85399dee)] 38 XCTest 0x0000000102707a10 -[XCTestCase(Failures) performFailableBlock:testCaseRun:shouldInterruptTest:] + 72
[MJSONWP (85399dee)] 39 XCTest 0x0000000102707920 -[XCTestCase(Failures) _performTurningExceptionsIntoFailuresInterruptAfterHandling:block:] + 112
[MJSONWP (85399dee)] 40 XCTest 0x00000001026b0290 __26-[XCTestCase performTest:]_block_invoke.352 + 112
[MJSONWP (85399dee)] 41 XCTest 0x000000010271ae2c +[XCTContext runInContextForTestCase:block:] + 216
[MJSONWP (85399dee)] 42 XCTest 0x00000001026afa2c -[XCTestCase performTest:] + 676
[MJSONWP (85399dee)] 43 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64
[MJSONWP (85399dee)] 44 XCTest 0x00000001026aa1f4 __27-[XCTestSuite performTest:]_block_invoke + 284
[MJSONWP (85399dee)] 45 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
[MJSONWP (85399dee)] 46 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344
[MJSONWP (85399dee)] 47 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64
[MJSONWP (85399dee)] 48 XCTest 0x00000001026aa1f4 __27-[XCTestSuite performTest:]_block_invoke + 284
[MJSONWP (85399dee)] 49 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
[MJSONWP (85399dee)] 50 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344
[MJSONWP (85399dee)] 51 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64
[MJSONWP (85399dee)] 52 XCTest 0x00000001026aa1f4 __27-[XCTestSuite performTest:]_block_invoke + 284
[MJSONWP (85399dee)] 53 XCTest 0x00000001026a9a6c -[XCTestSuite _performProtectedSectionForTest:testSection:] + 76
[MJSONWP (85399dee)] 54 XCTest 0x00000001026a9d50 -[XCTestSuite performTest:] + 344
[MJSONWP (85399dee)] 55 XCTest 0x00000001026f3f84 -[XCTest runTest] + 64
[MJSONWP (85399dee)] 56 XCTest 0x000000010272d338 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke + 180
[MJSONWP (85399dee)] 57 XCTest 0x000000010272d444 __44-[XCTTestRunSession runTestsAndReturnError:]_block_invoke.84 + 116
[MJSONWP (85399dee)] 58 XCTest 0x00000001026c3bf8 -[XCTestObservationCenter _observeTestExecutionForBlock:] + 520
[MJSONWP (85399dee)] 59 XCTest 0x000000010272d0ec -[XCTTestRunSession runTestsAndReturnError:] + 624
[MJSONWP (85399dee)] 60 XCTest 0x000000010268da04 -[XCTestDriver runTestsAndReturnError:] + 444
[MJSONWP (85399dee)] 61 XCTest 0x00000001027171b4 _XCTestMain + 2404
[MJSONWP (85399dee)] 62 WebDriverAgentRunner-Runner 0x000000010223f8e8 -[_XCTRunnerAppDelegate applicationWillResignActive:] + 0
[MJSONWP (85399dee)] 63 WebDriverAgentRunner-Runner 0x000000010223f7f0 _XCTRunnerRunTests + 0
[MJSONWP (85399dee)] 64 CoreFoundation 0x00000001bc29e27c + 28
[MJSONWP (85399dee)] 65 CoreFoundation 0x00000001bc29db64 + 276
[MJSONWP (85399dee)] 66 CoreFoundation 0x00000001bc298964 + 1008
[MJSONWP (85399dee)] 67 CoreFoundation 0x00000001bc298254 CFRunLoopRunSpecific + 452
[MJSONWP (85399dee)] 68 GraphicsServices 0x00000001be4d7d8c GSEventRunModal + 108
[MJSONWP (85399dee)] 69 UIKitCore 0x00000001e95e04c0 UIApplicationMain + 216
[MJSONWP (85399dee)] 70 WebDriverAgentRunner-Runner 0x000000010223fab4 main + 192
[MJSONWP (85399dee)] 71 libdyld.dylib 0x00000001bbd54fd8 + 4
[MJSONWP (85399dee)] )
[MJSONWP (85399dee)] at errorFromMJSONWPStatusCode (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:789:10)
[MJSONWP (85399dee)] at ProxyRequestError.errorFromMJSONWPStatusCode [as getActualError] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:683:14)
[MJSONWP (85399dee)] at JWProxy.getActualError [as command] (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:235:19)
[HTTP] <-- GET /wd/hub/session/85399dee-e23d-4e18-a197-cc2696195bf3/source 500 648 ms - 7789
[HTTP]
Appium server stopped successfully

What is this problem?

Not able to select the Element

I am not able to select the Element which is being displayed on the screen.
iOS 10.2.1 and Appium 1.6.3
PFA Screen shot
screen shot 2017-02-03 at 4 21 43 pm

Accessibility Id: AX error -25205 displayed

Hello, After I came back from the winter vacation, i am see that I am getting the above mentioned error.
Appium Verion:
Appium 1.6.5 and Appium 1.7
I have also tried Appium Desktop Version 1.2.4 and 1.2.7 using XCUITest. I get the same results.
ios appium inspector

This was not happening before the December 22 nd when I last used it.
I know this may not be related to Appium-iOS-Inspector, but I am unable to resolve it at the moment.

Appium 1.6.4-beta Issue

Inspector no longer work in Appium 1.6.4-beta. No specific errors to speak of but it is unable to grab the element tree.

screen shot 2017-02-02 at 10 28 52 am

Appium source at http://localhost:4723/wd/hub/session/1c8f1c1e-d547-42e3-a7b7-9354d58c346d/source cannot be received after 10 seconds timeout.

@mykola-mokhnach please help me

The problem

I am trying to inspect element using Appium- inspector but as soon as when i hit inspector.html in browser i got error in appium log
@#[line:0,col:undefined]
[xmldom error] element parse error: TypeError: source.indexOf is not a function

and inspector.html url shows Error " Appium source at http://localhost:4723/wd/hub/session/1c8f1c1e-d547-42e3-a7b7-9354d58c346d/source cannot be received after 10 seconds timeout. Click this message to retry."

and could not capture screen to inspect element

Environment

  • Appium version (or git revision) that exhibits the issue: 1.6.4
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium: 10.12.4
  • Node.js version (unless using Appium.app|exe):v6.10.1
  • Mobile platform/version under test: iOS 10.0.1
  • Real device or emulator/simulator:Real Device
  • Appium CLI or Appium.app|exe: CLI

Details

1 I have added breakpoint in my Automation script
2. Now Start my automation script , script starts exceuting and it stops on Login screen as per my breakpoint added
3 now i hit file:///Users/Mukesh/Downloads/Appium-iOS-Inspector-master/iOS%20Inspector.html Url to inspect element from screen
4 But after hitting URL i below message in my appium terminal and it goes continues.
@#[line:0,col:undefined]
[xmldom error] element parse error: TypeError: source.indexOf is not a function
5. And in Url i got message" Appium source at http://localhost:4723/wd/hub/session/1c8f1c1e-d547-42e3-a7b7-9354d58c346d/source cannot be received after 10 seconds timeout. Click this message to retry."
but could not capture screen .
Logs.zip

Appium session is unreachable despite the valid port

Hi,
I've pulled the latest version (Latest commit 10c4b83 on Apr 21), but no luck yet.
I updated inspector.js with a valid port value and tried to open the page with my app launched in iOS Simulator, but all I see is "Appium session at http://127.0.0.1:21077/wd/hub is unreachable. Make sure your Appium test is running and click this message to retry."

Driver capabilities:

"networkConnectionEnabled" -> "false"
"orientation" -> "PORTRAIT"
"noReset" -> "true"
"databaseEnabled" -> "false"
"fullReset" -> "false"
"deviceName" -> "iPhone 6"
"CapabilityName" -> "driver.capabilities.IPhoneCapabilities"
"platform" -> "MAC"
"showXcodeLog" -> "true"
"defaultCapability" -> "false"
"newCommandTimeout" -> "0"
"platformVersion" -> "10.3.1"
"webStorageEnabled" -> "false"
"locationContextEnabled" -> "false"
"automationName" -> "XCUITest"
"browserName" -> 
"takesScreenshot" -> "true"
"waitForAppScript" -> "true"
"javascriptEnabled" -> "true"
"udid" -> "B2B986C8-69B3-4E84-88A8-893DD711A8F8"
"platformName" -> "iOS"
"autoAcceptAlerts" -> "false"```

UDID is also valid.

Server args:
0 = "/usr/local/lib/node_modules/appium/build/lib/main.js"
1 = "--port"
2 = "21077"
3 = "--address"
4 = "127.0.0.1"
5 = "--log-level"
6 = "error"
7 = "--bootstrap-port"
8 = "55974"
9 = "--tmp"
10 = "./target/tmp"
11 = "--local-timezone"
12 = "--session-override"
13 = "--log-timestamp"


Appium and its dependencies have the following versions (via npm):

โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”€ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”€ [email protected]
โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]
โ”‚ โ”œโ”€โ”ฌ [email protected]

What's weird: it worked last week and suddenly stopped working now.
Can it be a compatibility issue?

syntax error, unexpected '<' <!DOCTYPE html>

While installing from brew install https://github.com/mykola-mokhnach/Appium-iOS-Inspector is giving error like : - syntax error, unexpected '<'

LOG DETAILS : - rror: Appium-iOS-Inspector: /Users/gopalprasad/Library/Caches/Homebrew/Formula/Appium-iOS-Inspector:7: syntax error, unexpected '<'

^
/Users/test/Library/Caches/Homebrew/Formula/Appium-iOS-Inspector:8: syntax error, unexpected '<'

^ /Users/test/Library/Caches/Homebrew/Formula/Appium-iOS-Inspector:9: syntax error, unexpected '<' ^ /Users/test/Library/Caches/Homebrew/Formula/Appium-iOS-Inspector:14: syntax error, unexpected '<'

What needs to be done to have a standalone Android Inspector as well?

Hi,

on the project page it says that the Appium-iOS-Inspector is based on the original source of Selendroid Inspector. I checked the original Selendroid Inspector code and noticed that it's actually a servlet based solution, tightly coupled with Selendroid itself.

Now if I'd wanted to create a "standalone" Inspector solution for Android that works with Appium, similar to what you did for iOS, what would be the general and preferred steps?

I assume that you started the original servlet based inspector and saved all HTML/JS/etc. files once loaded in the browser so everything is available locally and then adapted it to Appium-/iOS-specifics.

Would it be possible/suitable to start with your code base and add Android support or is it too coupled with Appiums iOS drivers so I'd rather start off the original Selendroid Inspector base?

Any hints?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.