If you need to troubleshoot a mobile find step or create a custom Appium snippet, you can use the debug view to understand elements in isolation and in context. To open the debug view, launch your mobile test in the mabl Trainer and take the following steps:
- Navigate to the page view that you want to capture in the debug view.
- Click on the settings icon in the top right corner of the Trainer panel.
- Select Debug view.
Accessing the debug view
You can also open the debug menu with Command+Shift+D on Mac and Control+Shift+D on Windows.
The debug view includes the following tabs:
- Inspect - inspect attributes for a specific element on the page
- Page source - capture the page source for the current view of the app
Next steps
Depending on what you want to accomplish, take one of the following next steps:
- If you're creating a custom Appium snippet, use the debug view to identify attributes to use for your XPath expression.
- If you're troubleshooting an issue with finding the correct element, use the debug view as a resource for understanding the elements in the current page view.