question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android driver should trap log requests so it can return logcat logs even when in webview mode

See original GitHub issue

Using 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:closed
  • Created 9 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jlippscommented, Mar 23, 2016

ok, reopening it as a feature request

0reactions
mykola-mokhnachcommented, May 28, 2020

The feature is now available in appium@beta, UIAutomator2 driver. Please verify it and let us know if there are any issues

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found