Hi All,
I am new to Appium. I have started using Appium with Android and I succeeded in automating NativeApp. But when I try to automate WebView app, I can’t able to do it.
This is my approach…
I have an app which has both Native and WebView. Once user clicks on XYZ button it is redirecting to WebView. Here I have written contexts switch code to switch to WebView. With this code I can able to switch to WebView. Then, when I try to do some function inside WebView it does nothing.
Chrome session is not started. Kindly help how to do.
Please find my Appium Log…
Starting Node Server
info: Welcome to Appium v1.3.4 (REV c8c79a85fbd6870cd6fc3d66d038a115ebe22efe)
info: Appium REST http interface listener started on 127.0.0.1:4723
info: [debug] Non-default server args: {“address”:“127.0.0.1”,“logNoColors”:true,“platformName”:“Android”,“platformVersion”:“18”,“automationName”:“Appium”}
info: Console LogLevel: debug
info: → POST /wd/hub/session {“desiredCapabilities”:{“browserName”:“”,“autoWebview”:true,“deviceName”:“Moto X”,“platformVersion”:“4.4.4”,“platformName”:“Android”,“app”:“http://appium.github.io/appium/assets/selendroid-test-app-0.10.0.apk”}}
info: Client User-Agent string: undefined
info: [debug] No appActivity desired capability or server param. Parsing from apk.
info: [debug] No appPackage desired capability or server param. Parsing from apk.
info: [debug] http://appium.github.io/appium/assets/selendroid-test-app-0.10.0.apk downloaded to C:\Users\PRAVEE~1\AppData\Local\Temp\114112-7028-1431f45\appium-app.apk
info: [debug] Creating new appium session 1f02aef5-525a-4ab5-a5f5-65fe14782e26
info: Starting android appium
info: [debug] Getting Java version
info: Java version is: 1.7.0_65
info: [debug] Using fast reset? true
info: [debug] Preparing device for session
info: [debug] Checking whether app is actually present
info: [debug] Checking whether adb is present
info: [debug] Using adb from C:\android-sdk\platform-tools\adb.exe
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devices…
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe devices
info: [debug] 1 device(s) connected
info: Found device 192.168.56.101:5555
info: [debug] Setting device id to 192.168.56.101:5555
info: [debug] Waiting for device to be ready and to respond to shell commands (timeout = 5)
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 wait-for-device
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “echo ‘ready’”
info: [debug] Starting logcat capture
info: [debug] Parsing package and activity from app manifest
info: [debug] Checking whether aapt is present
info: [debug] Using aapt from C:\android-sdk\build-tools\21.0.2\aapt.exe
info: [debug] Extracting package and launch activity from manifest.
info: [debug] executing cmd: C:\android-sdk\build-tools\21.0.2\aapt.exe dump badging C:\Users\PRAVEE~1\AppData\Local\Temp\114112-7028-1431f45\appium-app.apk
info: [debug] badging package: io.selendroid.testapp
info: [debug] badging act: io.selendroid.testapp.HomeScreenActivity
info: [debug] Parsed package and activity are: io.selendroid.testapp/io.selendroid.testapp.HomeScreenActivity
info: [debug] Getting device API level
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “getprop ro.build.version.sdk”
info: [debug] Device is at API Level 19
info: Device API level is: 19
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “getprop persist.sys.language”
info: [debug] Current device persist.sys.language:
info: [debug] java -jar “C:\Appium\node_modules\appium\node_modules\appium-adb\jars\appium_apk_tools.jar” “stringsFromApk” “C:\Users\PRAVEE~1\AppData\Local\Temp\114112-7028-1431f45\appium-app.apk” “C:\Users\PRAVEE~1\AppData\Local\Temp\io.selendroid.testapp”
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 push “C:\Users\PRAVEE~1\AppData\Local\Temp\io.selendroid.testapp\strings.json” /data/local/tmp
info: [debug] Checking whether aapt is present
info: [debug] Using aapt from C:\android-sdk\build-tools\21.0.2\aapt.exe
info: [debug] Retrieving process from manifest.
info: [debug] executing cmd: C:\android-sdk\build-tools\21.0.2\aapt.exe dump xmltree C:\Users\PRAVEE~1\AppData\Local\Temp\114112-7028-1431f45\appium-app.apk AndroidManifest.xml
info: [debug] Set app process to: io.selendroid.testapp
info: [debug] Not uninstalling app since server not started with --full-reset
info: [debug] Checking app cert for C:\Users\PRAVEE~1\AppData\Local\Temp\114112-7028-1431f45\appium-app.apk.
info: [debug] executing cmd: java -jar C:\Appium\node_modules\appium\node_modules\appium-adb\jars\verify.jar C:\Users\PRAVEE~1\AppData\Local\Temp\114112-7028-1431f45\appium-app.apk
info: [debug] App not signed with debug cert.
info: [debug] Resigning apk.
info: [debug] executing cmd: java -jar C:\Appium\node_modules\appium\node_modules\appium-adb\jars\sign.jar C:\Users\PRAVEE~1\AppData\Local\Temp\114112-7028-1431f45\appium-app.apk --override
info: [debug] Zip-aligning C:\Users\PRAVEE~1\AppData\Local\Temp\114112-7028-1431f45\appium-app.apk
info: [debug] Checking whether zipalign is present
info: [debug] Using zipalign from C:\android-sdk\build-tools\21.0.2\zipalign.exe
info: [debug] Zip-aligning apk.
info: [debug] executing cmd: C:\android-sdk\build-tools\21.0.2\zipalign.exe -f 4 C:\Users\PRAVEE~1\AppData\Local\Temp\114112-7028-1431f45\appium-app.apk C:\Users\PRAVEE~1\AppData\Local\Temp\appium114112-7028-qg3854.tmp
info: [debug] MD5 for app is ec238b6685e14b147905fdd08475c47d
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “ls /data/local/tmp/ec238b6685e14b147905fdd08475c47d.apk”
info: [debug] Getting install status for io.selendroid.testapp
info: [debug] Getting device API level
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “getprop ro.build.version.sdk”
info: [debug] Device is at API Level 19
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “pm list packages -3 io.selendroid.testapp”
info: [debug] App is installed
info: App is already installed, resetting app
info: [debug] Running fast reset (stop and clear)
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “am force-stop io.selendroid.testapp”
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “pm clear io.selendroid.testapp”
info: [debug] Forwarding system:4724 to device:4724
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 forward tcp:4724 tcp:4724
info: [debug] Pushing appium bootstrap to device…
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 push “C:\Appium\node_modules\appium\build\android_bootstrap\AppiumBootstrap.jar” /data/local/tmp/
info: [debug] Pushing settings apk to device…
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 install “C:\Appium\node_modules\appium\build\settings_apk\settings_apk-debug.apk”
info: [debug] Pushing unlock helper app to device…
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 install “C:\Appium\node_modules\appium\build\unlock_apk\unlock_apk-debug.apk”
info: Starting App
info: [debug] Attempting to kill all ‘uiautomator’ processes
info: [debug] Getting all processes with ‘uiautomator’
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “ps ‘uiautomator’”
info: [debug] No matching processes found
info: [debug] Running bootstrap
info: [debug] spawning: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell uiautomator runtest AppiumBootstrap.jar -c io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: numtests=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: stream=
info: [debug] [UIAUTOMATOR STDOUT] io.appium.android.bootstrap.Bootstrap:
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: id=UiAutomatorTestRunner
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: test=testRunServer
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: class=io.appium.android.bootstrap.Bootstrap
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS: current=1
info: [debug] [UIAUTOMATOR STDOUT] INSTRUMENTATION_STATUS_CODE: 1
info: [debug] [BOOTSTRAP] [debug] Socket opened on port 4724
info: [debug] [BOOTSTRAP] [debug] Appium Socket Server Ready
info: [debug] [BOOTSTRAP] [debug] Loading json…
info: [debug] Waking up device if it’s not alive
info: [debug] Pushing command to appium work queue: [“wake”,{}]
info: [debug] [BOOTSTRAP] [debug] json loading complete.
info: [debug] [BOOTSTRAP] [debug] Registered crash watchers.
info: [debug] [BOOTSTRAP] [debug] Client connected
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“wake”,“params”:{}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: wake
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “dumpsys window”
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:true,“status”:0}
info: [debug] Screen already unlocked, continuing.
info: [debug] Pushing command to appium work queue: [“getDataDir”,{}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“getDataDir”,“params”:{}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getDataDir
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“/data”,“status”:0}
info: [debug] dataDir set to: /data
info: [debug] Pushing command to appium work queue: [“compressedLayoutHierarchy”,{“compressLayout”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“compressedLayoutHierarchy”,“params”:{“compressLayout”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: compressedLayoutHierarchy
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:false,“status”:0}
info: [debug] Getting device API level
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “getprop ro.build.version.sdk”
info: [debug] Device is at API Level 19
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n io.selendroid.testapp/io.selendroid.testapp.HomeScreenActivity”
info: [debug] Waiting for pkg “io.selendroid.testapp” and activity “io.selendroid.testapp.HomeScreenActivity” to be focused
info: [debug] Getting focused package and activity
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “dumpsys window windows”
info: [debug] Setting auto webview
info: [debug] Getting a list of available webviews
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “cat /proc/net/unix”
info: [debug] WEBVIEW_1478 mapped to pid 1478
info: [debug] Getting process name for webview
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “ps”
info: [debug] WEBVIEW_1428 mapped to pid 1428
info: [debug] Getting process name for webview
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “ps”
info: [debug] Parsed pid: 1478 pkg: com.android.browser
info: [debug] from: u0_a18,1478,154,659284,80496,ffffffff,b774607b,S,com.android.browser
info: [debug] returning process name: com.android.browser
info: [debug] Parsed pid: 1428 pkg: com.linkedin.android
info: [debug] from: u0_a62,1428,154,606004,63476,ffffffff,b774607b,S,com.linkedin.android
info: [debug] returning process name: com.linkedin.android
info: [debug] Available contexts:
info: [debug] [“WEBVIEW_com.android.browser”,“WEBVIEW_com.linkedin.android”]
info: [debug] Available contexts: NATIVE_APP,WEBVIEW_com.android.browser,WEBVIEW_com.linkedin.android
info: [debug] Retrying context switch with timeout ‘2000’
info: [debug] Getting a list of available webviews
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “cat /proc/net/unix”
info: [debug] WEBVIEW_1478 mapped to pid 1478
info: [debug] Getting process name for webview
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “ps”
info: [debug] WEBVIEW_1428 mapped to pid 1428
info: [debug] Getting process name for webview
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “ps”
info: [debug] Parsed pid: 1478 pkg: com.android.browser
info: [debug] from: u0_a18,1478,154,659284,80496,ffffffff,b774607b,S,com.android.browser
info: [debug] returning process name: com.android.browser
info: [debug] Parsed pid: 1428 pkg: com.linkedin.android
info: [debug] from: u0_a62,1428,154,606004,63476,ffffffff,b774607b,S,com.linkedin.android
info: [debug] returning process name: com.linkedin.android
info: [debug] Available contexts: NATIVE_APP,WEBVIEW_com.android.browser,WEBVIEW_com.linkedin.android
info: [debug] [“WEBVIEW_com.android.browser”,“WEBVIEW_com.linkedin.android”]
info: [debug] Available contexts: NATIVE_APP,WEBVIEW_com.android.browser,WEBVIEW_com.linkedin.android
info: [debug] Device launched! Ready for commands
info: [debug] Setting command timeout to the default of 60 secs
info: [debug] Appium session started with sessionId 1f02aef5-525a-4ab5-a5f5-65fe14782e26
info: ← POST /wd/hub/session 303 11407.467 ms - 9
info: → GET /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26 {}
info: [debug] Responding to client with success: {“status”:0,“value”:{“platform”:“LINUX”,“browserName”:“”,“platformVersion”:“4.4.4”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“browserName”:“”,“autoWebview”:true,“deviceName”:“Moto X”,“platformVersion”:“4.4.4”,“platformName”:“Android”,“app”:“http://appium.github.io/appium/assets/selendroid-test-app-0.10.0.apk"},“autoWebview”:true,“deviceName”:"Moto X”,“platformName”:“Android”,“app”:“http://appium.github.io/appium/assets/selendroid-test-app-0.10.0.apk"},“sessionId”:"1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: ← GET /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26 200 5.732 ms - 651 {“status”:0,“value”:{“platform”:“LINUX”,“browserName”:“”,“platformVersion”:“4.4.4”,“webStorageEnabled”:false,“takesScreenshot”:true,“javascriptEnabled”:true,“databaseEnabled”:false,“networkConnectionEnabled”:true,“locationContextEnabled”:false,“warnings”:{},“desired”:{“browserName”:“”,“autoWebview”:true,“deviceName”:“Moto X”,“platformVersion”:“4.4.4”,“platformName”:“Android”,“app”:“http://appium.github.io/appium/assets/selendroid-test-app-0.10.0.apk"},“autoWebview”:true,“deviceName”:"Moto X”,“platformName”:“Android”,“app”:“http://appium.github.io/appium/assets/selendroid-test-app-0.10.0.apk"},“sessionId”:"1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: → POST /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26/timeouts/implicit_wait {“ms”:360000}
info: [debug] Set Android implicit wait to 360000ms
info: [debug] Responding to client with success: {“status”:0,“value”:null,“sessionId”:“1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: ← POST /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26/timeouts/implicit_wait 200 5.036 ms - 76 {“status”:0,“value”:null,“sessionId”:“1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: → POST /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26/element {“using”:“name”,“value”:“buttonStartWebviewCD”,“locator”:“name”}
warn: [DEPRECATED] The name locator strategy has been deprecated and will be removed. Please use the accessibility id locator strategy instead.
info: [debug] Waiting up to 360000ms for condition
info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“name”,“selector”:“buttonStartWebviewCD”,“context”:“”,“multiple”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“name”,“selector”:“buttonStartWebviewCD”,“context”:“”,“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding buttonStartWebviewCD using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=buttonStartWebviewCD, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:{“ELEMENT”:“1”},“status”:0}
info: [debug] Responding to client with success: {“status”:0,“value”:{“ELEMENT”:“1”},“sessionId”:“1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: ← POST /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26/element 200 69.053 ms - 87 {“status”:0,“value”:{“ELEMENT”:“1”},“sessionId”:“1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: → GET /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26/element/1/displayed {}
info: [debug] Pushing command to appium work queue: [“element:getAttribute”,{“elementId”:“1”,“attribute”:“displayed”}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:getAttribute”,“params”:{“elementId”:“1”,“attribute”:“displayed”}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getAttribute
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“true”,“status”:0}
info: [debug] Responding to client with success: {“status”:0,“value”:true,“sessionId”:“1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: ← GET /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26/element/1/displayed 200 60.671 ms - 76 {“status”:0,“value”:true,“sessionId”:“1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: → POST /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26/element {“using”:“name”,“value”:“buttonStartWebviewCD”,“locator”:“name”}
info: [debug] Waiting up to 360000ms for condition
info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“name”,“selector”:“buttonStartWebviewCD”,“context”:“”,“multiple”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“name”,“selector”:“buttonStartWebviewCD”,“context”:“”,“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding buttonStartWebviewCD using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=buttonStartWebviewCD, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:{“ELEMENT”:“2”},“status”:0}
info: [debug] Responding to client with success: {“status”:0,“value”:{“ELEMENT”:“2”},“sessionId”:“1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: ← POST /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26/element 200 61.149 ms - 87 {“status”:0,“value”:{“ELEMENT”:“2”},“sessionId”:“1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: → POST /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26/element {“using”:“name”,“value”:“buttonStartWebviewCD”,“locator”:“name”}
info: [debug] Waiting up to 360000ms for condition
info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“name”,“selector”:“buttonStartWebviewCD”,“context”:“”,“multiple”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“name”,“selector”:“buttonStartWebviewCD”,“context”:“”,“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding buttonStartWebviewCD using NAME with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=buttonStartWebviewCD, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:{“ELEMENT”:“3”},“status”:0}
info: [debug] Responding to client with success: {“status”:0,“value”:{“ELEMENT”:“3”},“sessionId”:“1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: ← POST /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26/element 200 194.756 ms - 87 {“status”:0,“value”:{“ELEMENT”:“3”},“sessionId”:“1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: → GET /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26/element/3/displayed {}
info: [debug] Pushing command to appium work queue: [“element:getAttribute”,{“elementId”:“3”,“attribute”:“displayed”}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:getAttribute”,“params”:{“elementId”:“3”,“attribute”:“displayed”}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: getAttribute
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“true”,“status”:0}
info: [debug] Responding to client with success: {“status”:0,“value”:true,“sessionId”:“1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: ← GET /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26/element/3/displayed 200 1542.385 ms - 76 {“status”:0,“value”:true,“sessionId”:“1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: → POST /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26/element/3/click {}
info: [debug] Pushing command to appium work queue: [“element:click”,{“elementId”:“3”}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“element:click”,“params”:{“elementId”:“3”}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: click
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:true,“status”:0}
info: [debug] Responding to client with success: {“status”:0,“value”:true,“sessionId”:“1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: ← POST /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26/element/3/click 200 1421.683 ms - 76 {“status”:0,“value”:true,“sessionId”:“1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: → GET /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26/contexts {}
info: [debug] Getting a list of available webviews
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “cat /proc/net/unix”
info: [debug] WEBVIEW_2285 mapped to pid 2285
info: [debug] Getting process name for webview
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “ps”
info: [debug] WEBVIEW_1478 mapped to pid 1478
info: [debug] Getting process name for webview
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “ps”
info: [debug] WEBVIEW_1428 mapped to pid 1428
info: [debug] Getting process name for webview
info: [debug] executing cmd: C:\android-sdk\platform-tools\adb.exe -s 192.168.56.101:5555 shell “ps”
info: [debug] Parsed pid: 2285 pkg: io.selendroid.testapp
info: [debug] from: u0_a63,2285,154,642932,72480,ffffffff,b7746374,R,io.selendroid.testapp
info: [debug] returning process name: io.selendroid.testapp
info: [debug] Parsed pid: 1478 pkg: com.android.browser
info: [debug] from: u0_a18,1478,154,659284,80496,ffffffff,b774607b,S,com.android.browser
info: [debug] returning process name: com.android.browser
info: [debug] Parsed pid: 1428 pkg: com.linkedin.android
info: [debug] from: u0_a62,1428,154,606004,63476,ffffffff,b774607b,S,com.linkedin.android
info: [debug] returning process name: com.linkedin.android
info: [debug] Available contexts: NATIVE_APP,WEBVIEW_com.android.browser,WEBVIEW_com.linkedin.android
info: [debug] [“WEBVIEW_io.selendroid.testapp”,“WEBVIEW_com.android.browser”,“WEBVIEW_com.linkedin.android”]
info: [debug] Available contexts: NATIVE_APP,WEBVIEW_io.selendroid.testapp,WEBVIEW_com.android.browser,WEBVIEW_com.linkedin.android
info: [debug] Responding to client with success: {“status”:0,“value”:[“NATIVE_APP”,“WEBVIEW_io.selendroid.testapp”,“WEBVIEW_com.android.browser”,“WEBVIEW_com.linkedin.android”],“sessionId”:“1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: ← GET /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26/contexts 200 626.719 ms - 179 {“status”:0,“value”:[“NATIVE_APP”,“WEBVIEW_io.selendroid.testapp”,“WEBVIEW_com.android.browser”,“WEBVIEW_com.linkedin.android”],“sessionId”:“1f02aef5-525a-4ab5-a5f5-65fe14782e26”}
info: → POST /wd/hub/session/1f02aef5-525a-4ab5-a5f5-65fe14782e26/element {“using”:“id”,“value”:“name_input”,“locator”:“id”}
info: [debug] Waiting up to 360000ms for condition
info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding name_input using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=name_input, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“No element found”,“status”:7}
info: [debug] Waited for 40ms so far
info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding name_input using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=name_input, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“No element found”,“status”:7}
info: [debug] Waited for 588ms so far
info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding name_input using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=name_input, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“No element found”,“status”:7}
info: [debug] Waited for 1107ms so far
info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding name_input using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=name_input, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“No element found”,“status”:7}
info: [debug] Waited for 1644ms so far
info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding name_input using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=name_input, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“No element found”,“status”:7}
info: [debug] Waited for 2196ms so far
info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding name_input using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=name_input, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“No element found”,“status”:7}
info: [debug] Waited for 2717ms so far
info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding name_input using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=name_input, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“No element found”,“status”:7}
info: [debug] Waited for 3253ms so far
info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding name_input using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=name_input, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“No element found”,“status”:7}
info: [debug] Waited for 3819ms so far
info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding name_input using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=name_input, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“No element found”,“status”:7}
info: [debug] Waited for 4358ms so far
info: [debug] Pushing command to appium work queue: [“find”,{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}]
info: [debug] [BOOTSTRAP] [debug] Got data from client: {“cmd”:“action”,“action”:“find”,“params”:{“strategy”:“id”,“selector”:“name_input”,“context”:“”,“multiple”:false}}
info: [debug] [BOOTSTRAP] [debug] Got command of type ACTION
info: [debug] [BOOTSTRAP] [debug] Got command action: find
info: [debug] [BOOTSTRAP] [debug] Finding name_input using ID with the contextId: multiple: false
info: [debug] [BOOTSTRAP] [debug] Using: UiSelector[DESCRIPTION=name_input, INSTANCE=0]
info: [debug] [BOOTSTRAP] [debug] Returning result: {“value”:“No element found”,“status”:7}
info: [debug] Waited for 4897ms so far
Killed Node Server.
Node Server Process Ended