Skip to main content

Visual logs

Visual Logs enable you to automatically capture screenshots for various Appium commands executed in your test session. They can help detect the exact step where the failure occurred. They also help in identifying any layout or design-related issues in your application. Visual logs are disabled by default. To enable visual logs, use the browserstack.debug capability.

Capability Description Value
browserstack.debug Generate screenshots for various appium commands in your test true, false
Default: false

Example :

DesiredCapabilities desiredCapabilities = new DesiredCapabilities();
desiredCapabilities.setCapability("browserstack.debug", "true");
var capabilities = {
	'browserstack.debug': 'true'
}
DesiredCapabilities capability = new DesiredCapabilities();
capability.SetCapability("browserstack.debug", "true");
$capabilities = new DesiredCapabilities();
$capabilities->setCapability("browserstack.debug", "true");
desired_cap = {
	'browserstack.debug': 'true'
}
desired_caps = {
    'browserstack.debug': 'true'
}

Access visual logs from the dashboard:

To access visual logs, in the App Automate dashboard, go to your build. Select the test, click the Text Logs tab, and then select the Visuals checkbox. The visual logs display the screenshots taken during test execution.

Access visual logs from the dashboard

Note: If the content played by the application under test is DRM protected, screenshots will be blacked out.

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback!

Talk to an Expert
Download Copy