Android driver should trap log requests so it can return logcat logs even when in webview mode
See original GitHub issueUsing Opera browser on Android, which has an embedded chromium context, driver.get_log("logcat")
stops working after switching to chromium context using:
driver.switch_to.context("CHROMIUM")
After the first switch (regardless of whether I switch back to native app context or not) I keep getting the following server error when trying to get the logcat:
unknown error: log type 'logcat' not found\n (Session info: content shell with embedded Chromium )\n
Looks like the context switch breaks the logcat capture functionality.
Issue Analytics
- State:
- Created 9 years ago
- Comments:11 (8 by maintainers)
Top Results From Across the Web
Write and view logs with Logcat - Android Developers
View your app logs; Write log messages; Logcat message format ... messages in real time and keeps a history, so you can view...
Read more >android - Read logcat programmatically within application
The "-d" flag instruct to logcat to show log content and exit. If you remove the flag, logcat will not terminate and keeps...
Read more >Accessing Android Logcat Logs with Appium - HeadSpin
Find out how you can use Appium to access logs that the Android system records using a tool called logcat.
Read more >Desired Capabilities - Appium
Desired Capabilities are keys and values encoded in a JSON object, sent by Appium clients to the server when a new automation session...
Read more >558377 - WebView should make sure it's not used multiple ...
It's unfortunate that Android had the issue it did which caused this to trigger for apps that aren't themselves doing anything wrong, but...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
ok, reopening it as a feature request
The feature is now available in appium@beta, UIAutomator2 driver. Please verify it and let us know if there are any issues