Skip to content
| Marketplace
Sign in
Visual Studio Code>Testing>Appium Live Locator ScannerNew to Visual Studio Code? Get it now.
Appium Live Locator Scanner

Appium Live Locator Scanner

Yogesh Salunke

|
2 installs
| (0) | Free
Scan live Appium sessions and generate Java-style locators directly in VS Code — with secure credential storage.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Appium Live Locator Scanner — VS Code Extension

Run appium_live_scanner.py directly from VS Code with a secure, integrated UI. No credentials are ever stored in plain text.

Note: this VSIX only includes the VS Code extension UI unless appium_live_scanner.py is copied into the extension folder before packaging. If it is not bundled, use the Config tab to browse to your scanner script.


Features

Feature Details
Secure credential storage Appium capabilities are stored via VS Code's built-in SecretStorage API — encrypted, never in settings.json or files
Live terminal output Scanner stdout/stderr streams directly into the panel
Screen labeling Name each scan (e.g. login_screen, dashboard) before running
Auto-save outputs locators_<screen>.txt and locators_<screen>.json saved to your chosen folder
dcValue.txt manager Load and save dcValue.txt without leaving VS Code
Multi-approach driver Mirrors the scanner's own fallback logic for Appium 3.x connections

Installation (Dev Mode)

  1. Copy the appium-live-scanner/ folder into your project or anywhere on disk.
  2. Open VS Code → Extensions → click ⋯ → Install from VSIX…
    (or use the dev method below for unpacked installs)

Dev method (no VSIX needed):

1. Open this folder in VS Code
2. Press F5 → "Run Extension"
3. A new Extension Development Host window opens with the plugin active

Package as VSIX (optional):

npm install -g @vscode/vsce
vsce package
# produces appium-live-scanner-1.0.0.vsix

Quick Start

  1. Click the phone icon in the Activity Bar (left sidebar) to open the panel.
  2. Go to the ⚙ Config tab:
    • Set your Python path (e.g. python3)
    • Browse to appium_live_scanner.py
    • Set output folder
  3. Go to 🔑 Capabilities tab:
    • Paste your Appium capabilities as JSON
    • Click Store Capabilities Securely — they are encrypted by VS Code
  4. Go to ▶ Scan tab:
    • Confirm host/port
    • Enter a screen label
    • Click Start Scan

Security Model

┌─────────────────────────────────────────────────────────┐
│  What is stored WHERE                                   │
├─────────────────────────────────────────────────────────┤
│  Appium capabilities  →  VS Code SecretStorage          │
│  (appPackage, creds)     (OS keychain / encrypted)      │
├─────────────────────────────────────────────────────────┤
│  Host, port, paths    →  .vscode/settings.json          │
│  (non-sensitive)         (workspace-scoped, no secrets) │
├─────────────────────────────────────────────────────────┤
│  Runtime launcher     →  Temp .py file, deleted after   │
│  (generated per scan)    scan completes automatically   │
└─────────────────────────────────────────────────────────┘
  • Capabilities are never passed as CLI arguments (not visible in ps aux)
  • The temp launcher file is deleted automatically after each scan
  • Use "Appium: Clear Stored Credentials" from the Command Palette to wipe secrets

Output Files

After each scan, three files are saved to your output folder:

File Contents
locators_<screen>.txt Java-style locators, copy-paste ready
locators_<screen>.json Structured element data
pagesource_<screen>.xml Raw XML page source from Appium

Commands (Command Palette)

Command Description
Appium: Open Live Scanner Panel Open the sidebar panel
Appium: Clear Stored Credentials Wipe capabilities from SecretStorage
Appium: Set Scanner Script Path Browse to appium_live_scanner.py

Requirements

  • VS Code 1.85+
  • Python 3.8+ with appium-python-client and lxml installed
  • Appium 3.x server running (appium --port 4723)
  • UiAutomator2 driver (appium driver install uiautomator2)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft