Inspector is a general support tool for Appium for UI automation designed to be used in conjunction with the Appium Server. It's helpful in inspecting the U elements and their attribute values. Use this tag for questions referring to Appium automation and inspecting UI elements using the support tool Inspector.
Appium Inspector is a inspection and recording tool provided along with Appium GUI Application to provide an add on support to the automation tool.
Inspector : Generally termed as Appium Inspector, can be accessed by clicking the magnifying glass button next to the launch button on the Appium GUI application once the Appium server has launched.
Appium server must be running with an test app(.apk/.ipa/.app) open for inspector to work. Otherwise, it will not work.
Inspector Window
Show Invisible Filter: Elements which are not visible will be displayed in the DOM 3-column-view.
Show Disabled Filter: Elements which are not enabled will be displayed in the DOM 3-column-view.
Record Button: Opens the recording Panel and starts recording actions performed using controls in the Appium Inspector.
Refresh Button: Refreshes the DOM 3-column view and the screenshot.
Screenshot Area: Displays the last screenshot taken for the app. You can click this area to select elements in the DOM.
Details Area: Displays details about the currently selected element.
Action Palette: The action palette contains buttons that will trigger actions on the device under test. Actions can be tried out here or entered to be recorded.
Touch Section: Contains buttons to perform touch events like tapping and swiping.
- Text Section: Contains buttons to perform text events like typing and executing JavaScript.
- Alerts Section: Contains buttons to perform events on alerts and action sheets.
Recorder Drawer
The recorder draw contains the code generated by recorded actions you've performed while recording is enabled.
Language Selection Dropdown: Changes the language your recorded actions are displayed in.
Add Boilerplate Checkbox: Checking this block will display code used to setup the Selenium instance along with code related to the actions you have recorded. Unchecking this box will only show only the code from the actions you have recorded.
XPath Only Checkbox: Checking this will cause all element identifiers to be created using XPath.
- Replay Button: Replays the actions that you have recorded.
- Undo Button: Deletes the last recorded action.
- Redo Button: Adds back the last undone action.
- Clear Button: Removes all recorded actions.