device_connect

package
v0.0.0-...-ebafd5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNodeInstalled

func CheckNodeInstalled() error

CheckNodeInstalled checks if Node.js and npm are installed

func GetAppiumPath

func GetAppiumPath() string

GetAppiumPath returns the path to the Appium binary

func InstallAppium

func InstallAppium(cfg AppiumConfig) error

InstallAppium installs Appium server and its components

func IsAppiumInstalled

func IsAppiumInstalled(appiumHome string) bool

IsAppiumInstalled checks if Appium is already installed in our working directory

Types

type AppiumConfig

type AppiumConfig struct {
	InstallAppium bool
	Drivers       []string
	Plugins       []string
}

AppiumConfig holds the configuration for Appium installation

func GetAppiumConfig

func GetAppiumConfig() AppiumConfig

GetAppiumConfig reads Appium installation configuration from environment variables

type AppiumDriverInfo

type AppiumDriverInfo struct {
	PkgName   string `json:"pkgName"`
	Version   string `json:"version"`
	Installed bool   `json:"installed"`
}

AppiumDriverInfo represents driver information from Appium JSON output

{
  "uiautomator2": {
    "pkgName": "appium-uiautomator2-driver",
    "version": "4.2.7",
    "installType": "npm",
    "installSpec": "uiautomator2",
    "installPath": "/Users/gbox/.appium/node_modules/appium-uiautomator2-driver",
    "appiumVersion": "^2.4.1 || ^3.0.0-beta.0",
    "automationName": "UiAutomator2",
    "platformNames": [
      "Android"
    ],
    "mainClass": "AndroidUiautomator2Driver",
    "scripts": {
      "reset": "scripts/reset.js"
    },
    "doctor": {
      "checks": [
        "./build/lib/doctor/required-checks.js",
        "./build/lib/doctor/optional-checks.js"
      ]
    },
    "installed": true
  }
}

type AppiumPluginInfo

type AppiumPluginInfo struct {
	PkgName   string `json:"pkgName"`
	Version   string `json:"version"`
	Installed bool   `json:"installed"`
}

AppiumPluginInfo represents plugin information from Appium JSON output

{
  "inspector": {
    "pkgName": "appium-inspector-plugin",
    "version": "2025.8.2",
    "installType": "npm",
    "installSpec": "inspector",
    "installPath": "/Users/gbox/.appium/node_modules/appium-inspector-plugin",
    "appiumVersion": "^3.0.0-beta.0",
    "mainClass": "AppiumInspectorPlugin",
    "installed": true
  }
}

type UISpinner

type UISpinner struct {
	// contains filtered or unexported fields
}

UISpinner wraps spinner for elegant terminal output

func NewUISpinner

func NewUISpinner(debug bool, message string) *UISpinner

NewUISpinner creates a new spinner with the given message

func (*UISpinner) Fail

func (s *UISpinner) Fail(message string)

Fail stops the spinner and prints an error message

func (*UISpinner) Stop

func (s *UISpinner) Stop()

Stop stops the spinner without printing anything

func (*UISpinner) Success

func (s *UISpinner) Success(message string)

Success stops the spinner and prints a success message

Directories

Path Synopsis
transport

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL