Skip to content
pCloudy – Question and Answers
Menu
    • Appium Tips and Tricks
    • Ask Question
    • Questions
    • search-results
    • test page

Category: Device Logs and Page source

Device Logs and Page source

How to clear device logs on every start of the test to save more space in Appium?

capabilities.setCapabilities(“clearDeviceLogsOnStart”=true) Truncate the device logs at the beginning of a session, so calls to getLogs will return log lines starting with the beginning of the session. This is very helpful …

Device Logs and Page source

How to get the page source when a find operation fails in Appium?

capabilities.setCapabilities(“printPageSourceOnFindFailure”,true); When a find operation fails, print the current page source. Useful for debugging and diagnosing test failures Value = true/false

Device Logs and Page source

How to access android log cat logs for debugging?

driver.manage().logs().getAvailableLogTypes()); driver.manage().logs().get(“logcat”); Description An Android device or emulator records detailed system logs, which can sometimes contain information which is pertinent to a test. Maybe our test failed and we want …

Device Logs and Page source

How to get logs using Appium?

Set Plog = driver.manage().logs().getAvailableLogTypes();

Device Logs and Page source

How to get page source/App hirarachy in Appium?

String pSource = driver.getPageSource();

pCloudy PORTAL

  • Appium Tips and Tricks
  • Ask Question
  • Sample Code
  • Documentation
  • Videos
  • Blog
  • Training

POPULAR QUESTIONS

  • How to automate pull down refresh functionality ?
  • Can I use pCloudy to test web application on iOS device through automation?
  • How many devices can I connect in each plan?
  • How we can do interrupt testing?
  • Is it possible to run Automation on Android and iOS devices at the same time?
Copyright © 2025 pCloudy - Question and Answers – All Rights Reserved