Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appium could not shows WEBVIEW but actually exists on an Android Native App #8162

Closed
Kalyan1989 opened this issue Apr 4, 2017 · 24 comments
Closed

Comments

@Kalyan1989
Copy link

Kalyan1989 commented Apr 4, 2017

The problem

Appium could not shows/detects WEBVIEW but actually exists on an Android Native App.
The main protractor script does not start execution.

Environment

  • Appium version (or git revision) that exhibits the issue: appium-desktop-Setup-1.0.0-beta.6
  • Last Appium version that did not exhibit the issue (if applicable):
  • Desktop OS/version used to run Appium: Win7
  • Node.js version (unless using Appium.app|exe): 4.4.4
  • Mobile platform/version under test: 7.0
  • Real device or emulator/simulator: Real device
  • Appium CLI or Appium.app|exe:

Details

[12:47:23] E/launcher - No such context found.
[12:47:23] E/launcher - WebDriverError: No such context found.
at WebDriverError (C:\Users\ic014162\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\error.js:27:5)

Link to Appium logs

[HTTP] <-- POST /wd/hub/session 500 48414 ms - 75
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"noReset":true,"browserName":"","platformName":"android","platformVersion":"7.0","deviceName":"HT4AXJT03397","app":"D:\InternalTesting\CloudData\android-armv7-release.apk","autoWebview":true,"deviceReadyTimeout":3000,"orientation":"LANDSCAPE","autoWebviewTimeout":10000,"count":1}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{"noReset":true,"browserName":"","platformName":"android","platformVersion":"7.0","deviceName":"HT4AXJT03397","app":"D:\InternalTesting\CloudData\android-armv7-release.apk","autoWebview":true,"deviceReadyTimeout":3000,"orientation":"LANDSCAPE","autoWebviewTimeout":10000,"count":1},null,null,null,null]
[BaseDriver] Event 'newSessionRequested' logged at 1492070254483 (13:27:34 GMT+0530 (India Standard Time))
[Appium] Creating new AndroidDriver (v1.17.1) session
[Appium] Capabilities:
[Appium] noReset: true
[Appium] browserName: ''
[Appium] platformName: 'android'
[Appium] platformVersion: '7.0'
[Appium] deviceName: 'HT4AXJT03397'
[Appium] app: 'D:\InternalTesting\CloudData\android-armv7-release.apk'
[Appium] autoWebview: true
[Appium] deviceReadyTimeout: 3000
[Appium] orientation: 'LANDSCAPE'
[Appium] autoWebviewTimeout: 10000
[Appium] count: 1
[AndroidDriver] AndroidDriver version: 1.17.1
[BaseDriver] The following capabilities were provided, but are not recognized by appium: count.
[BaseDriver] Session created with session id: da4895b2-0565-4a3c-976e-14d42151bcd5
[AndroidDriver] Getting Java version
[AndroidDriver] Java version is: 1.8.0_121
[ADB] Checking whether adb is present
[ADB] Using adb.exe from C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe
[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 HT4AXJT03397
[ADB] Getting device platform version
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","getprop","ro.build.version.release"]
[AndroidDriver] Using device: HT4AXJT03397
[ADB] Checking whether adb is present
[ADB] Using adb.exe from C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe
[ADB] Setting device id to HT4AXJT03397
[BaseDriver] Using local app 'D:\InternalTesting\CloudData\android-armv7-release.apk'
[AndroidDriver] Checking whether app is actually present
[AndroidDriver] Starting Android session
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","wait-for-device"]
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","echo","ping"]
[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 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","pm","list","packages","io.appium.settings"]
[ADB] App is installed
[ADB] Getting package info for io.appium.settings
[ADB] Getting connected devices...
[ADB] Checking whether aapt is present
[ADB] Using aapt.exe from C:\Users\ic014162\AppData\Local\Android\sdk\build-tools\25.0.2\aapt.exe
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","dumpsys","package","io.appium.settings"]
[ADB] Cannot read version codes of C:\Users\ic014162\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\io.appium.settings\app\build\outputs\apk\settings_apk-debug.apk and/or io.appium.settings. Assuming correct app version is already installed
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","getprop","ro.build.version.sdk"]
[ADB] Device API level: 24
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","dumpsys","package","io.appium.settings"]
[AndroidDriver] Pushing unlock helper app to device...
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","install","C:\Users\ic014162\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk"]
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","install","C:\Users\ic014162\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk"]
[ADB] Application 'C:\Users\ic014162\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-unlock\bin\unlock_apk-debug.apk' already installed. Continuing.
[ADB] Device API level: 24
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","appops","set","io.appium.settings","android:mock_location","allow"]
[ADB] Getting device platform version
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","getprop","ro.build.version.release"]
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","wm","size"]
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","getprop","ro.product.model"]
[ADB] Current device property 'ro.product.model': Nexus 9
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","getprop","ro.product.manufacturer"]
[ADB] Current device property 'ro.product.manufacturer': htc
[AndroidDriver] Parsing package and activity from app manifest
[ADB] Checking whether aapt is present
[ADB] Using aapt.exe from C:\Users\ic014162\AppData\Local\Android\sdk\build-tools\25.0.2\aapt.exe
[ADB] Extracting package and launch activity from manifest
[ADB] badging package: com.siemens.bt.ra.mobile
[ADB] badging act: com.siemens.bt.ra.mobile.MainActivity
[AndroidDriver] Parsed package and activity are: com.siemens.bt.ra.mobile/com.siemens.bt.ra.mobile.MainActivity
[AndroidDriver] Remote apk path is /data/local/tmp/1040152263b79a4e7980cbe596c55ca2.apk
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","ls","/data/local/tmp/1040152263b79a4e7980cbe596c55ca2.apk"]
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","ls","/data/local/tmp/1040152263b79a4e7980cbe596c55ca2.apk"]
[AndroidDriver] Checking if app is installed
[ADB] Getting install status for com.siemens.bt.ra.mobile
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","pm","list","packages","com.siemens.bt.ra.mobile"]
[ADB] App is installed
[AndroidDriver] Extracting strings from apk D:\InternalTesting\CloudData\android-armv7-release.apk undefined C:\Users\ic014162\AppData\Local\Temp\com.siemens.bt.ra.mobile
[ADB] Extracting strings for language: default
[ADB] Device API level: 24
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","getprop","persist.sys.locale"]
[ADB] Current device property 'persist.sys.locale': en-US
[ADB] No strings.xml for language 'en', getting default strings.xml
[ADB] Reading strings from converted strings.json
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","push","C:\Users\ic014162\AppData\Local\Temp\com.siemens.bt.ra.mobile\strings.json","/data/local/tmp"]
[AndroidBootstrap] Watching for bootstrap disconnect
[ADB] Forwarding system: 4724 to device: 4724
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","forward","tcp:4724","tcp:4724"]
[UiAutomator] Starting UiAutomator
[UiAutomator] Moving to state 'starting'
[UiAutomator] Parsing uiautomator jar
[UiAutomator] Found jar name: 'AppiumBootstrap.jar'
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","push","C:\Users\ic014162\AppData\Local\Programs\appium-desktop\resources\app\node_modules\appium\node_modules\appium-android-bootstrap\bootstrap\bin\AppiumBootstrap.jar","/data/local/tmp/"]
[ADB] Attempting to kill all uiautomator processes
[ADB] Getting all processes with uiautomator
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","ps"]
[ADB] No uiautomator process found to kill, continuing...
[UiAutomator] Starting UIAutomator
[ADB] Creating ADB subprocess with args: ["-P",5037,"-s","HT4AXJT03397","shell","uiautomator","runtest","AppiumBootstrap.jar","-c","io.appium.android.bootstrap.Bootstrap","-e","pkg","com.siemens.bt.ra.mobile","-e","disableAndroidWatchers",false,"-e","acceptSslCerts",false]
[UiAutomator] Moving to state 'online'
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Loading json...
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] json loading complete.
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Registered crash watchers.
[AndroidBootstrap] Android bootstrap socket is now connected
[ADB] Getting connected devices...
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Client connected
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","dumpsys","window"]
[AndroidDriver] Screen already unlocked, doing nothing
[ADB] Device API level: 24
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","am","start","-W","-n","com.siemens.bt.ra.mobile/com.siemens.bt.ra.mobile.MainActivity","-S"]
[ADB] Waiting for pkg: 'com.siemens.bt.ra.mobile' and activity: 'com.siemens.bt.ra.mobile.MainActivity' to be focused
[ADB] Possible activities, to be checked: com.siemens.bt.ra.mobile.MainActivity, com.siemens.bt.ra.mobile.com.siemens.bt.ra.mobile.MainActivity
[ADB] Getting focused package and activity
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","dumpsys","window","windows"]
[ADB] Found package: 'com.siemens.bt.ra.mobile' and fully qualified activity name : 'com.siemens.bt.ra.mobile.MainActivity'
[AndroidDriver] Setting auto webview to context 'WEBVIEW_com.siemens.bt.ra.mobile' with timeout 10000ms
[AndroidDriver] Getting a list of available webviews
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","cat","/proc/net/unix"]
[AndroidDriver] Found webviews: []
[AndroidDriver] Available contexts: ["NATIVE_APP"]
[AndroidDriver] Getting a list of available webviews
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","cat","/proc/net/unix"]
[AndroidDriver] Found webviews: []
[AndroidDriver] Available contexts: ["NATIVE_APP"]
[AndroidDriver] Getting a list of available webviews
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","cat","/proc/net/unix"]
[AndroidDriver] Found webviews: []
[AndroidDriver] Available contexts: ["NATIVE_APP"]
[AndroidDriver] Getting a list of available webviews
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","cat","/proc/net/unix"]
[AndroidDriver] Found webviews: []
[AndroidDriver] Available contexts: ["NATIVE_APP"]
[AndroidDriver] Getting a list of available webviews
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","cat","/proc/net/unix"]
[AndroidDriver] Found webviews: []
[AndroidDriver] Available contexts: ["NATIVE_APP"]
[AndroidDriver] Getting a list of available webviews
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","cat","/proc/net/unix"]
[AndroidDriver] Found webviews: []
[AndroidDriver] Available contexts: ["NATIVE_APP"]
[AndroidDriver] Getting a list of available webviews
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","cat","/proc/net/unix"]
[AndroidDriver] Found webviews: []
[AndroidDriver] Available contexts: ["NATIVE_APP"]
[AndroidDriver] Getting a list of available webviews
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","cat","/proc/net/unix"]
[AndroidDriver] Found webviews: []
[AndroidDriver] Available contexts: ["NATIVE_APP"]
[AndroidDriver] Getting a list of available webviews
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","cat","/proc/net/unix"]
[AndroidDriver] Found webviews: []
[AndroidDriver] Available contexts: ["NATIVE_APP"]
[AndroidDriver] Getting a list of available webviews
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","cat","/proc/net/unix"]
[AndroidDriver] Found webviews: []
[AndroidDriver] Available contexts: ["NATIVE_APP"]
[AndroidDriver] Getting a list of available webviews
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","cat","/proc/net/unix"]
[AndroidDriver] Found webviews: []
[AndroidDriver] Available contexts: ["NATIVE_APP"]
[AndroidDriver] Getting a list of available webviews
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","cat","/proc/net/unix"]
[AndroidDriver] Found webviews: []
[AndroidDriver] Available contexts: ["NATIVE_APP"]
[AndroidDriver] Shutting down Android driver
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","am","force-stop","com.siemens.bt.ra.mobile"]
[ADB] Pressing the HOME button
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","input","keyevent",3]
[AndroidBootstrap] Sending command to android: {"cmd":"shutdown"}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"shutdown"}
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got command of type SHUTDOWN
[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":"OK, shutting down"}
[AndroidBootstrap] Received command result from bootstrap
[UiAutomator] Shutting down UiAutomator
[UiAutomator] Moving to state 'stopping'
[UiAutomator] UiAutomator shut down normally
[UiAutomator] Moving to state 'stopped'
[ADB] Attempting to kill all uiautomator processes
[ADB] Getting all processes with uiautomator
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","ps"]
[ADB] No uiautomator process found to kill, continuing...
[UiAutomator] Moving to state 'stopped'
[Logcat] Stopping logcat capture
[ADB] Getting connected devices...
[ADB] 1 device(s) connected
[ADB] Running 'C:\Users\ic014162\AppData\Local\Android\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","HT4AXJT03397","shell","am","force-stop","io.appium.unlock"]
[AndroidDriver] Not cleaning generated files. Add clearSystemFiles capability if wanted.
[HTTP] <-- POST /wd/hub/session 500 21472 ms - 75

## Code To Reproduce Issue [ Good To Have ]
exports.config = {
seleniumAddress: 'http://localhost:4723/wd/hub',
specs: ['appSpec.js'],
rootElement: ['ng-app'],

capabilities:{
noReset: true,
browserName: '',
platformName: 'android',
platformVersion: '7.0',
deviceName: 'HT4AXJT03397',
app: '..\android-armv7-release.apk',
autoWebview: true,
deviceReadyTimeout: 3000,
orientation: 'LANDSCAPE',
},
baseUrl: 'http://localhost:8100',

onPrepare: function(){
var wd = require('wd'),
protractor = require('protractor'),
wdBridge = require('wd-bridge')(protractor,wd);
wdBridge.initFromProtractor(exports.config);
}
};

@triager triager added the Needs Triage bugs which are not yet confirmed label Apr 4, 2017
@siggerzz
Copy link

siggerzz commented Apr 4, 2017

@Kalyan1989 Does it work okay on Simulator? I'm having this issue too when trying to test on a real Android device.

@Kalyan1989
Copy link
Author

I have not tested it with Simulator (Which simulator you are using?).
But I have got the same error on multiple devices with different android version.

@siggerzz
Copy link

siggerzz commented Apr 5, 2017

I'm using the simulator that's part of the Android SDK.

Simulator works fine on 7.1.1
Real device doesn't work - test 7.1.1/7.0/6.0

@Kalyan1989
Copy link
Author

Where do you think the problem might be? Protractor, Appium or Android SDK?

@obstar
Copy link

obstar commented Apr 20, 2017

same issue for me.
property is set to true:

  • setWebContentsDebuggingEnabled(true);

but on real devices the only available context is 'native_app' only

tested against:

  • android 5.0.1, 6.0 and 7.0 (s4, nexus 5 and s7 edge)
  • appium desktop 1.6.4

same tests run on emulators of those real device run ok and webview is recognize by appium

@okanerdogan09
Copy link

any progress on this issue? i face same issue.

@siggerzz
Copy link

siggerzz commented May 9, 2017

@okanerdogan84

Set the following in the onCreate method of your app

WebView.setWebContentsDebuggingEnabled(true);

Then make sure that you set your driver context to the webview in your test.

@obstar
Copy link

obstar commented May 9, 2017

@siggerzz
I've got set all correctly its still doesnt work, on real device webview context is not visible by appium

@siggerzz
Copy link

siggerzz commented May 9, 2017

@obstar Try setting the autoWebview desired capability to true.

@okanerdogan09
Copy link

okanerdogan09 commented May 9, 2017

i enabled WebView.setWebContentsDebuggingEnabled(true);
and the code i use is like below. Please let me know if there is a missing part

DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("deviceName", "00a9f1b08d7e58a3"); capabilities.setCapability("CapabilityType.BROWSER_NAME", "Android"); capabilities.setCapability("CapabilityType.VERSION", "5.0.2"); capabilities.setCapability("platformName", "Android"); capabilities.setCapability("app", "xxx.apk"); capabilities.setCapability("appPackage", "xxxxx.dev"); capabilities.setCapability("appActivity", "xxxxxxx.SplashActivity"); driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);

Set<String> contextHandles = driver.getContextHandles(); for (String s : contextHandles) { System.out.println("Context : " + s); if (s.contains("WEBVIEW")) { driver.context(s);

@okanerdogan09
Copy link

after i add capabilities.setCapability("autoWebview", "true"); to my desiredCapabilities my tests crash in line driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);
are u using anything else?

@siggerzz
Copy link

siggerzz commented May 9, 2017

From what I'm aware, AndroidDriver is an interface, so you'll need to provide the element type used in your tests.

e.g.
driver = new AndroidDriver< IWebElement > (new URL("http://127.0.0.1:4723/wd/hub"), capabilities);

@okanerdogan09
Copy link

sorry guys that was my bad. after setting WebView.setWebContentsDebuggingEnabled(true); oncreate method it worked

@imurchie imurchie removed the Needs Triage bugs which are not yet confirmed label Jul 19, 2017
@VasaviUppada
Copy link

I can able to set up configuratrion successfully but have some issues.
I have 4 pages to navigate one from another. I can able to access to pages & can able to find locators on first two pages. once I navigate to 3rd page, Appium Desktop unable to recognize the web page which is displayed on Android simulator. If I click some where on mobile page & refresh appium desktop, then I can able to get screenshot of the mobile page.

I can able to locate elements after getting screenshot of MobilePage on Appium Desktop. But when I run my script, it is failing after reaching this page as it is not recognized by Appium.

Im currently using Appium Desktop version v1.7.1

I stuck here & unable to proceed further.

@ruchika77
Copy link

Hi,

I am using Appium with protractor on real device.
My conf file is -
exports.config = {
seleniumAddress: 'http://localhost:4723/wd/hub',
specs: ['*.js'],
capabilities: {
'browserName': '',
'deviceName': 'Galaxy Note 3',
'appium-version': '1.8.0',
'platformName': 'Android',
'platformVersion': '5.0',
'autoWebview': true,
'autoWebviewTimeout': 1000,
'deviceReadyTimeout': 3000,
'autoAcceptAlerts': 'true',
'applicationName': 'vista',
'app': 'com.c2c.vista',
'appActivity': 'com.c2c.vista.MainActivity',
'webContentsDebuggingEnabled' : true
}
};

and when I am running it gives me this error -

E/launcher - No such context found.
E/launcher - WebDriverError: No such context found.

Can someone please help me?

@yauheniya
Copy link

@ruchika77 Hi! I faced the same problemю I was inattentive and I tried to run tests for not-debug version. After install debug version of the app everything becomes ok. Maybe it will help somebody)

@dav1dls
Copy link

dav1dls commented Jul 15, 2019

Could someone fix this problem?

1 similar comment
@dav1dls
Copy link

dav1dls commented Jul 15, 2019

Could someone fix this problem?

@schmuckistoffl
Copy link

Did someone could provide a workaround meanwhile? We are facing a problem similar to this. Would be great if there is a solution meanwhile.

@coolvasanth
Copy link

coolvasanth commented Feb 7, 2020

Hi, It's 2020 February and I'm still facing this error. When I execute below code I will get one native and one Webview context. But when I try to set the context by driver.setContext("context...") It runs for 5-10 mins and at the end throws an error = io.appium.java_client.nosuchcontextexception no such context found.
```
Set contextNames = driver.getContextHandles();
for (String contextName : contextNames) {
System.out.println(contextName); //prints out something like NATIVE_APP \n WEBVIEW_1
}

Stuck with this from 3 days, kindly help at the earliest. 


@imurchie
Copy link
Contributor

imurchie commented Feb 7, 2020

@coolvasanth Please attach the Appium server logs, as a link to a gist. Turning on Chromedriver logging (setting the showChromedriverLog capability to true) would be helpful as well, to see what Chromedriver is up to.

@coolvasanth
Copy link

coolvasanth commented Feb 8, 2020

@imurchie Thanks for the reply. Please find the logs attached here. Also this is my Desired capability.
{ "app": "..\app-debug.apk", "deviceName": "R52M519QA9E", "platformName": "android", "noReset": true, "chromedriverExecutable": "path to chrome driver" //using 2.30 chrome driver }

The main error that I'm seeing is : 'DevTools request failed' . If I don't try to switch the context then there are no errors.

@arpitkup
Copy link

arpitkup commented May 4, 2020

Hello, I am facing similar issue. I am trying to automate Android app that has Native and Webview. When I run my test on android emulator, I am able to see both native and webview contexts, and able to switch to webview after launching the app and successfully interact with web elements. However, when I run the same test on the Android real device(Android 9, Galaxy S9), when AppiumDriver.getContexts() method is called, I can see only Native context. The Webview context is not detected at all. I am passing the following capabilities. capability.SetCapability("platformName", "Android");
capability.SetCapability("platformVersion", "9.0");
capability.SetCapability("deviceName", "Galaxy S9");
capability.SetCapability("app", "./Documents/myApp.apk");
capability.SetCapability("automationName", "UiAutomator2");

Am i missing any additional capability to detect webview on real device ?

@baalarazor
Copy link

Getting below error while trying to WEB view in Samsung Internet Browser -

[AndroidDriver] Found 2 webviews: ["WEBVIEW_chrome","WEBVIEW_Terrace"]
[AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_chrome","WEBVIEW_Terrace"]
[W3C (b55fe4ca)] Responding to client with driver.getContexts() result: ["NATIVE_APP","WEBVIEW_chrome","WEBVIEW_Terrace"]
[HTTP] <-- GET /wd/hub/session/b55fe4ca-357d-4490-8246-bf1fd2f7adb2/contexts 200 503 ms - 59
[HTTP]
[HTTP] --> GET /wd/hub/session/b55fe4ca-357d-4490-8246-bf1fd2f7adb2/contexts
[HTTP] {}
[W3C (b55fe4ca)] Calling AppiumDriver.getContexts() with args: ["b55fe4ca-357d-4490-8246-bf1fd2f7adb2"]
[AndroidDriver] Getting a list of available webviews
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 shell cat /proc/net/unix'
[AndroidDriver] Parsed 2 active devtools sockets: ["@chrome_devtools_remote","@Terrace_devtools_remote"]
[AndroidDriver] Not collecting web view details. Details collection might help to make Chromedriver initialization more precise. Use the 'enableWebviewDetailsCollection' cap to turn it on
[AndroidDriver] Collecting CDP data of 2 webviews
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 forward tcp:10900 localabstract:chrome_devtools_remote'
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 forward tcp:10901 localabstract:Terrace_devtools_remote'
[ADB] Removing forwarded port socket connection: 10900
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 forward --remove tcp:10900'
[ADB] Removing forwarded port socket connection: 10901
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 forward --remove tcp:10901'
[AndroidDriver] CDP data collection completed
[AndroidDriver] Found 2 webviews: ["WEBVIEW_chrome","WEBVIEW_Terrace"]
[AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_chrome","WEBVIEW_Terrace"]
[W3C (b55fe4ca)] Responding to client with driver.getContexts() result: ["NATIVE_APP","WEBVIEW_chrome","WEBVIEW_Terrace"]
[HTTP] <-- GET /wd/hub/session/b55fe4ca-357d-4490-8246-bf1fd2f7adb2/contexts 200 129 ms - 59
[HTTP]
[HTTP] --> POST /wd/hub/session/b55fe4ca-357d-4490-8246-bf1fd2f7adb2/context
[HTTP] {"name":"WEBVIEW_Terrace"}
[W3C (b55fe4ca)] Calling AppiumDriver.setContext() with args: ["WEBVIEW_Terrace","b55fe4ca-357d-4490-8246-bf1fd2f7adb2"]
[AndroidDriver] Getting a list of available webviews
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 shell cat /proc/net/unix'
[AndroidDriver] Parsed 2 active devtools sockets: ["@chrome_devtools_remote","@Terrace_devtools_remote"]
[AndroidDriver] Not collecting web view details. Details collection might help to make Chromedriver initialization more precise. Use the 'enableWebviewDetailsCollection' cap to turn it on
[AndroidDriver] Collecting CDP data of 2 webviews
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 forward tcp:10900 localabstract:chrome_devtools_remote'
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 forward tcp:10901 localabstract:Terrace_devtools_remote'
[ADB] Removing forwarded port socket connection: 10900
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 forward --remove tcp:10900'
[ADB] Removing forwarded port socket connection: 10901
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 forward --remove tcp:10901'
[AndroidDriver] CDP data collection completed
[AndroidDriver] Found 2 webviews: ["WEBVIEW_chrome","WEBVIEW_Terrace"]
[AndroidDriver] Available contexts: ["NATIVE_APP","WEBVIEW_chrome","WEBVIEW_Terrace"]
[AndroidDriver] Connecting to chrome-backed webview context 'WEBVIEW_Terrace'
[AndroidDriver] A port was not given, using random free port: 8000
[AndroidDriver] Precalculated Chromedriver capabilities: {
[AndroidDriver] "androidPackage": "com.sec.android.app.sbrowser",
[AndroidDriver] "androidUseRunningApp": true,
[AndroidDriver] "androidDeviceSerial": "58d0609666f1"
[AndroidDriver] }
[AndroidDriver] Before starting chromedriver, androidPackage is 'com.sec.android.app.sbrowser'
[Chromedriver] Changed state to 'starting'
[Chromedriver] Using the static Chromedriver->Chrome mapping
[Chromedriver] The most recent known Chrome version: 86.0.4240
[Chromedriver] Found 7 executables in '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac'
[Chromedriver] Cannot retrieve version number from 'chromedriver_mac64_m1_v88.0.4324.27' Chromedriver binary. Make sure it returns a valid version string in response to '--version' command line argument. spawn Unknown system error -86
[Chromedriver] Cannot retrieve version number from 'chromedriver_mac64_m1_v88.0.4324.96' Chromedriver binary. Make sure it returns a valid version string in response to '--version' command line argument. spawn Unknown system error -86
[Chromedriver] Cannot retrieve version number from 'chromedriver_mac64_m1_v89.0.4389.23' Chromedriver binary. Make sure it returns a valid version string in response to '--version' command line argument. spawn Unknown system error -86
[Chromedriver] The following Chromedriver executables were found:
[Chromedriver] '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver_mac64_v89.0.4389.23' (version '89.0.4389.23', minimum Chrome version '89.0.0')
[Chromedriver] '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver_mac64_v88.0.4324.96' (version '88.0.4324.96', minimum Chrome version '88.0.0')
[Chromedriver] '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver_mac64_v88.0.4324.27' (version '88.0.4324.27', minimum Chrome version '88.0.0')
[Chromedriver] '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver' (version '86.0.4240.22', minimum Chrome version '86.0.4240')
[ADB] Getting package info for 'com.google.android.webview'
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 shell dumpsys package com.google.android.webview'
[Chromedriver] Found Chrome bundle 'com.google.android.webview' version '89.0.4389'
[Chromedriver] Found 1 executable capable of automating Chrome '89.0.4389'.
[Chromedriver] Choosing the most recent, '/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver_mac64_v89.0.4389.23'.
[Chromedriver] If a specific version is required, specify it with the chromedriverExecutabledesired capability.
[Chromedriver] Set chromedriver binary as: /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver_mac64_v89.0.4389.23
[Chromedriver] Killing any old chromedrivers, running: pkill -15 -f "/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver_mac64_v89.0.4389.23.*--port=8000"
[Chromedriver] No old chromedrivers seem to exist
[Chromedriver] Cleaning this device's adb forwarded port socket connections: 58d0609666f1
[ADB] List forwarding ports
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 forward --list'
[Chromedriver] Spawning chromedriver with: /Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-chromedriver/chromedriver/mac/chromedriver_mac64_v89.0.4389.23 --url-base=wd/hub --port=8000 --adb-port=5037 --verbose
[Chromedriver] Chromedriver version: '89.0.4389.23'
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8000/wd/hub/status] with no body
[WD Proxy] connect ECONNREFUSED 127.0.0.1:8000
[WD Proxy] Matched '/status' to command name 'getStatus'
[WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:8000/wd/hub/status] with no body
[WD Proxy] Got response with status 200: {"value":{"build":{"version":"89.0.4389.23 (61b08ee2c50024bab004e48d2b1b083cdbdac579-refs/branch-heads/4389@{#294})"},"message":"ChromeDriver ready for new sessions.","os":{"arch":"x86_64","name":"Mac OS X","version":"10.15.7"},"ready":true}}
[Chromedriver] Starting W3C Chromedriver session with capabilities: {
[Chromedriver] "capabilities": {
[Chromedriver] "alwaysMatch": {
[Chromedriver] "goog:chromeOptions": {
[Chromedriver] "androidPackage": "com.sec.android.app.sbrowser",
[Chromedriver] "androidUseRunningApp": true,
[Chromedriver] "androidDeviceSerial": "58d0609666f1"
[Chromedriver] },
[Chromedriver] "goog:loggingPrefs": {
[Chromedriver] "browser": "ALL"
[Chromedriver] }
[Chromedriver] }
[Chromedriver] }
[Chromedriver] }
[WD Proxy] Matched '/session' to command name 'createSession'
[WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:8000/wd/hub/session] with body: {"capabilities":{"alwaysMatch":{"goog:chromeOptions":{"androidPackage":"com.sec.android.app.sbrowser","androidUseRunningApp":true,"androidDeviceSerial":"58d0609666f1"},"goog:loggingPrefs":{"browser":"ALL"}}}}
[WD Proxy] Got response with status 500: {"value":{"error":"unknown error","message":"unknown error: Failed to get sockets matching: @weblayer_devtools_remote_.*25553\n (make sure the app has its WebView/WebLayer configured for debugging)","stacktrace":"0 chromedriver_mac64_v89.0.4389.23 0x000000010aa0eb59 chromedriver_mac64_v89.0.4389.23 + 2595673\n1 chromedriver_mac64_v89.0.4389.23 0x000000010b0c2b33 chromedriver_mac64_v89.0.4389.23 + 9624371\n2 chromedriver_mac64_v89.0.4389.23 0x000000010a7be773 chromedriver_mac64_v89.0.4389.23 + 169843\n3 chromedriver_mac64_v89.0.4389.23 0x000000010a79f74a chromedriver_mac64_v89.0.4389.23 + 42826\n4 chromedriver_mac64_v89.0.4389.23 0x000000010a7a8aa6 chromedriver_mac64_v89.0.4389.23 + 80550\n5 chromedriver_mac64_v89.0.4389.23 0x000000010a7a8399 chromedriver_mac64_v89.0.4389.23 + 78745\n6 chromedriver_mac64_v89.0.4389.23 0x000000010a7dc623 chromedriver_mac64_v89.0.4389.23 + 292387\n7 chromedriver_mac64_v89.0.4389.23 0x000000010a80f234 chromedriver_mac64_v89.0.4389.23 + ...
[W3C] Matched W3C error code 'unknown error' to UnknownError
[Chromedriver] UnknownError: An unknown server-side error occurred while processing the command. Original error: unknown error: Failed to get sockets matching: @weblayer_devtools_remote_.*25553
[Chromedriver] (make sure the app has its WebView/WebLayer configured for debugging)
[Chromedriver] at errorFromW3CJsonCode (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:780:25)
[Chromedriver] at ProxyRequestError.getActualError (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:663:14)
[Chromedriver] at JWProxy.command (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:273:19)
[Chromedriver] at processTicksAndRejections (internal/process/task_queues.js:85:5)
[Chromedriver] Chromedriver exited unexpectedly with code null, signal SIGTERM
[Chromedriver] Changed state to 'stopped'
[Chromedriver] An unknown server-side error occurred while processing the command. Original error: unknown error: Failed to get sockets matching: @weblayer_devtools_remote_.*25553
[Chromedriver] (make sure the app has its WebView/WebLayer configured for debugging)
[W3C (b55fe4ca)] Encountered internal error running command: Error: An unknown server-side error occurred while processing the command. Original error: unknown error: Failed to get sockets matching: @weblayer_devtools_remote_.*25553
[W3C (b55fe4ca)] (make sure the app has its WebView/WebLayer configured for debugging)
[W3C (b55fe4ca)] at Object.errorAndThrow (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-support/lib/logging.js:94:35)
[W3C (b55fe4ca)] at Chromedriver.start (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-chromedriver/lib/chromedriver.js:540:11)
[W3C (b55fe4ca)] at AndroidUiautomator2Driver.setupNewChromedriver (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/context.js:440:3)
[W3C (b55fe4ca)] at AndroidUiautomator2Driver.startChromedriverProxy (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/context.js:189:10)
[W3C (b55fe4ca)] at AndroidUiautomator2Driver.switchContext (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/context.js:125:5)
[W3C (b55fe4ca)] at AndroidUiautomator2Driver.setContext (/Applications/Appium.app/Contents/Resources/app/node_modules/appium/node_modules/appium-android-driver/lib/commands/context.js:60:3)
[HTTP] <-- POST /wd/hub/session/b55fe4ca-357d-4490-8246-bf1fd2f7adb2/context 500 956 ms - 1037
[HTTP]
[HTTP] --> POST /wd/hub/session/b55fe4ca-357d-4490-8246-bf1fd2f7adb2/appium/app/reset
[HTTP] {}
[W3C (b55fe4ca)] Calling AppiumDriver.reset() with args: ["b55fe4ca-357d-4490-8246-bf1fd2f7adb2"]
[ADB] Getting install status for com.sec.android.app.sbrowser
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 shell dumpsys package com.sec.android.app.sbrowser'
[ADB] 'com.sec.android.app.sbrowser' is installed
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 shell am force-stop com.sec.android.app.sbrowser'
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 shell pm clear com.sec.android.app.sbrowser'
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 shell dumpsys package com.sec.android.app.sbrowser'
[ADB] Retrieving requested permissions
[ADB] Retrieved 77 permissions from requested group
[ADB] Retrieving granted permissions
[ADB] Retrieved 29 permissions from install,runtime groups
[ADB] Granting permissions ["android.permission.WRITE_MEDIA_STORAGE","android.permission.GET_ACCOUNTS","android.permission.SET_PREFERRED_APPLICATIONS","android.permission.ACCESS_COARSE_LOCATION","android.permission.ACCESS_FINE_LOCATION","android.permission.DEVICE_POWER","android.permission.GET_ACCOUNTS_PRIVILEGED","android.permission.WRITE_SETTINGS","android.permission.MANAGE_ROLE_HOLDERS","android.stk.permission.EVENT","android.permission.GET_INTENT_SENDER_INTENT","android.permission.sec","android.permission.sec","android.permission.sec","android.knox.permission.KNOX_AUDIT_LOG","android.knox.permission.KNOX_CERTIFICATE","android.settings.permission.SOFT_RESET","android.permission.FINGERPRINT_PRIVILEGED","android.permission.BIOMETRICS_PRIVILEGED","android.permission.READ_PRIVILEGED_PHONE_STATE","android.diagmonagent.permission.DIAGMON","android.permission.CONFIGURE_WIFI_DISPLAY","android.setting.permission.ALLSHARE_CAST_SERVICE","android.permission.WRITE_EXTERNAL_STORAGE","android.permission.SSRM_NOTIFICATION_PERMISSION","android.permission.STATUS_BAR","android.permission.MANAGE_ACTIVITY_STACKS","android.permission.REQUEST_INSTALL_PACKAGES","android.permission.INSTALL_PACKAGES","android.spay.permission.READ_CAPABILITY","android.launcher.permission.READ_SETTINGS","android.launcher.permission.WRITE_SETTINGS","android.permission.MODIFY_THEME","android.permission.INTERNAL_SYSTEM_WINDOW","android.samsungpass.permission.autofillform","android.permission.FINGERPRINT_WEB_SIGNIN","android.permission.IRIS_WEB_SIGNIN","android.permission.INTELLIGENT_SCAN_WEB_SIGNIN","android.samsungpass.permission.EASYSIGNIN","android.samsungpass.permission.setting","android.samsungpass.permission.setting","android.permission.QUERY_ALL_PACKAGES","android.permission.SUBSTITUTE_SHARE_TARGET_APP_NAME_AND_ICON","android.permission.READ_SEARCH_INDEXABLES","android.mcfds.permission.USE_CONTINUITY_PROVIDER","android.permission.CAMERA","android.permission.RECORD_AUDIO","android.permission.READ_EXTERNAL_STORAGE"] to 'com.sec.android.app.sbrowser'
[ADB] Got the following command chunks to execute: [["pm","grant","com.sec.android.app.sbrowser","android.permission.WRITE_MEDIA_STORAGE",";","pm","grant","com.sec.android.app.sbrowser","android.permission.GET_ACCOUNTS",";","pm","grant","com.sec.android.app.sbrowser","android.permission.SET_PREFERRED_APPLICATIONS",";","pm","grant","com.sec.android.app.sbrowser","android.permission.ACCESS_COARSE_LOCATION",";","pm","grant","com.sec.android.app.sbrowser","android.permission.ACCESS_FINE_LOCATION",";","pm","grant","com.sec.android.app.sbrowser","android.permission.DEVICE_POWER",";","pm","grant","com.sec.android.app.sbrowser","android.permission.GET_ACCOUNTS_PRIVILEGED",";","pm","grant","com.sec.android.app.sbrowser","android.permission.WRITE_SETTINGS",";","pm","grant","com.sec.android.app.sbrowser","android.permission.MANAGE_ROLE_HOLDERS",";","pm","grant","com.sec.android.app.sbrowser","android.stk.permission.EVENT",";","pm","grant","com.sec.android.app.sbrowser","android.permission.GET_INTENT_SENDER_INTENT",";","pm","grant","com.sec.android.app.sbrowser","android.permission.sec",";","pm","grant","com.sec.android.app.sbrowser","android.permission.sec",";"],["pm","grant","com.sec.android.app.sbrowser","android.permission.sec",";","pm","grant","com.sec.android.app.sbrowser","android.knox.permission.KNOX_AUDIT_LOG",";","pm","grant","com.sec.android.app.sbrowser","android.knox.permission.KNOX_CERTIFICATE",";","pm","grant","com.sec.android.app.sbrowser","android.settings.permission.SOFT_RESET",";","pm","grant","com.sec.android.app.sbrowser","android.permission.FINGERPRINT_PRIVILEGED",";","pm","grant","com.sec.android.app.sbrowser","android.permission.BIOMETRICS_PRIVILEGED",";","pm","grant","com.sec.android.app.sbrowser","android.permission.READ_PRIVILEGED_PHONE_STATE",";","pm","grant","com.sec.android.app.sbrowser","android.diagmonagent.permission.DIAGMON",";","pm","grant","com.sec.android.app.sbrowser","android.permission.CONFIGURE_WIFI_DISPLAY",";","pm","grant","com.sec.android.app.sbrowser","android.setting.permission.ALLSHARE_CAST_SERVICE",";","pm","grant","com.sec.android.app.sbrowser","android.permission.WRITE_EXTERNAL_STORAGE",";","pm","grant","com.sec.android.app.sbrowser","android.permission.SSRM_NOTIFICATION_PERMISSION",";"],["pm","grant","com.sec.android.app.sbrowser","android.permission.STATUS_BAR",";","pm","grant","com.sec.android.app.sbrowser","android.permission.MANAGE_ACTIVITY_STACKS",";","pm","grant","com.sec.android.app.sbrowser","android.permission.REQUEST_INSTALL_PACKAGES",";","pm","grant","com.sec.android.app.sbrowser","android.permission.INSTALL_PACKAGES",";","pm","grant","com.sec.android.app.sbrowser","android.spay.permission.READ_CAPABILITY",";","pm","grant","com.sec.android.app.sbrowser","android.launcher.permission.READ_SETTINGS",";","pm","grant","com.sec.android.app.sbrowser","android.launcher.permission.WRITE_SETTINGS",";","pm","grant","com.sec.android.app.sbrowser","android.permission.MODIFY_THEME",";","pm","grant","com.sec.android.app.sbrowser","android.permission.INTERNAL_SYSTEM_WINDOW",";","pm","grant","com.sec.android.app.sbrowser","android.samsungpass.permission.autofillform",";","pm","grant","com.sec.android.app.sbrowser","android.permission.FINGERPRINT_WEB_SIGNIN",";","pm","grant","com.sec.android.app.sbrowser","android.permission.IRIS_WEB_SIGNIN",";"],["pm","grant","com.sec.android.app.sbrowser","android.permission.INTELLIGENT_SCAN_WEB_SIGNIN",";","pm","grant","com.sec.android.app.sbrowser","android.samsungpass.permission.EASYSIGNIN",";","pm","grant","com.sec.android.app.sbrowser","android.samsungpass.permission.setting",";","pm","grant","com.sec.android.app.sbrowser","android.samsungpass.permission.setting",";","pm","grant","com.sec.android.app.sbrowser","android.permission.QUERY_ALL_PACKAGES",";","pm","grant","com.sec.android.app.sbrowser","android.permission.SUBSTITUTE_SHARE_TARGET_APP_NAME_AND_ICON",";","pm","grant","com.sec.android.app.sbrowser","android.permission.READ_SEARCH_INDEXABLES",";","pm","grant","com.sec.android.app.sbrowser","android.mcfds.permission.USE_CONTINUITY_PROVIDER",";","pm","grant","com.sec.android.app.sbrowser","android.permission.CAMERA",";","pm","grant","com.sec.android.app.sbrowser","android.permission.RECORD_AUDIO",";","pm","grant","com.sec.android.app.sbrowser","android.permission.READ_EXTERNAL_STORAGE",";"]]
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 shell pm grant com.sec.android.app.sbrowser android.permission.WRITE_MEDIA_STORAGE ; pm grant com.sec.android.app.sbrowser android.permission.GET_ACCOUNTS ; pm grant com.sec.android.app.sbrowser android.permission.SET_PREFERRED_APPLICATIONS ; pm grant com.sec.android.app.sbrowser android.permission.ACCESS_COARSE_LOCATION ; pm grant com.sec.android.app.sbrowser android.permission.ACCESS_FINE_LOCATION ; pm grant com.sec.android.app.sbrowser android.permission.DEVICE_POWER ; pm grant com.sec.android.app.sbrowser android.permission.GET_ACCOUNTS_PRIVILEGED ; pm grant com.sec.android.app.sbrowser android.permission.WRITE_SETTINGS ; pm grant com.sec.android.app.sbrowser android.permission.MANAGE_ROLE_HOLDERS ; pm grant com.sec.android.app.sbrowser android.stk.permission.EVENT ; pm grant com.sec.android.app.sbrowser android.permission.GET_INTENT_SENDER_INTENT ; pm grant com.sec.android.app.sbrowser android.permission.sec ; pm grant com.sec.android.app.sbrowser android.permission.sec ;'
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 shell pm grant com.sec.android.app.sbrowser android.permission.sec ; pm grant com.sec.android.app.sbrowser android.knox.permission.KNOX_AUDIT_LOG ; pm grant com.sec.android.app.sbrowser android.knox.permission.KNOX_CERTIFICATE ; pm grant com.sec.android.app.sbrowser android.settings.permission.SOFT_RESET ; pm grant com.sec.android.app.sbrowser android.permission.FINGERPRINT_PRIVILEGED ; pm grant com.sec.android.app.sbrowser android.permission.BIOMETRICS_PRIVILEGED ; pm grant com.sec.android.app.sbrowser android.permission.READ_PRIVILEGED_PHONE_STATE ; pm grant com.sec.android.app.sbrowser android.diagmonagent.permission.DIAGMON ; pm grant com.sec.android.app.sbrowser android.permission.CONFIGURE_WIFI_DISPLAY ; pm grant com.sec.android.app.sbrowser android.setting.permission.ALLSHARE_CAST_SERVICE ; pm grant com.sec.android.app.sbrowser android.permission.WRITE_EXTERNAL_STORAGE ; pm grant com.sec.android.app.sbrowser android.permission.SSRM_NOTIFICATION_PERMISSION ;'
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 shell pm grant com.sec.android.app.sbrowser android.permission.STATUS_BAR ; pm grant com.sec.android.app.sbrowser android.permission.MANAGE_ACTIVITY_STACKS ; pm grant com.sec.android.app.sbrowser android.permission.REQUEST_INSTALL_PACKAGES ; pm grant com.sec.android.app.sbrowser android.permission.INSTALL_PACKAGES ; pm grant com.sec.android.app.sbrowser android.spay.permission.READ_CAPABILITY ; pm grant com.sec.android.app.sbrowser android.launcher.permission.READ_SETTINGS ; pm grant com.sec.android.app.sbrowser android.launcher.permission.WRITE_SETTINGS ; pm grant com.sec.android.app.sbrowser android.permission.MODIFY_THEME ; pm grant com.sec.android.app.sbrowser android.permission.INTERNAL_SYSTEM_WINDOW ; pm grant com.sec.android.app.sbrowser android.samsungpass.permission.autofillform ; pm grant com.sec.android.app.sbrowser android.permission.FINGERPRINT_WEB_SIGNIN ; pm grant com.sec.android.app.sbrowser android.permission.IRIS_WEB_SIGNIN ;'
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 shell pm grant com.sec.android.app.sbrowser android.permission.INTELLIGENT_SCAN_WEB_SIGNIN ; pm grant com.sec.android.app.sbrowser android.samsungpass.permission.EASYSIGNIN ; pm grant com.sec.android.app.sbrowser android.samsungpass.permission.setting ; pm grant com.sec.android.app.sbrowser android.samsungpass.permission.setting ; pm grant com.sec.android.app.sbrowser android.permission.QUERY_ALL_PACKAGES ; pm grant com.sec.android.app.sbrowser android.permission.SUBSTITUTE_SHARE_TARGET_APP_NAME_AND_ICON ; pm grant com.sec.android.app.sbrowser android.permission.READ_SEARCH_INDEXABLES ; pm grant com.sec.android.app.sbrowser android.mcfds.permission.USE_CONTINUITY_PROVIDER ; pm grant com.sec.android.app.sbrowser android.permission.CAMERA ; pm grant com.sec.android.app.sbrowser android.permission.RECORD_AUDIO ; pm grant com.sec.android.app.sbrowser android.permission.READ_EXTERNAL_STORAGE ;'
[AndroidDriver] Performed fast reset on the installed 'com.sec.android.app.sbrowser' application (stop and clear)
[ADB] Running '/Users/baalamurugan.sc/Library/Android/sdk/platform-tools/adb -P 5037 -s 58d0609666f1 shell am start -W -n com.sec.android.app.sbrowser/com.sec.android.app.sbrowser.SBrowserMainActivity -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000'
[W3C (b55fe4ca)] Responding to client with driver.reset() result: null
[HTTP] <-- POST /wd/hub/session/b55fe4ca-357d-4490-8246-bf1fd2f7adb2/appium/app/reset 200 3490 ms - 14
[HTTP]
[HTTP] --> DELETE /wd/hub/session/b55fe4ca-357d-4490-8246-bf1fd2f7adb2
[HTTP] {}
[W3C (b55fe4ca)] Calling AppiumDriver.deleteSession() with args: ["b55fe4ca-357d-4490-8246-bf1fd2f7adb2"]
[BaseDriver] Event 'quitSessionRequested' logged at 1615205798021 (17:46:38 GMT+0530 (India Standard Time))
[Appium] Removing session b55fe4ca-357d-4490-8246-bf1fd2f7adb2 from our master session list
[UiAutomator2] Deleting UiAutomator2 session
[UiAutomator2] Deleting UiAutomator2 server session
[WD Proxy] Matched '/' to command name 'deleteSession'
[WD Proxy] Proxying [DELETE /] to [DELETE http://127.0.0.1:8200/wd/hub/session/0cc239e3-cddc-4d3d-9e40-5c6fae90e042] with no body
[WD Proxy] Got response with status 200: {"sessionId":"0cc239e3-cddc-4d3d-9e40-5c6fae90e042","value":null}
[UiAutomator2] Resetting IME to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests