0.1.0-1 β€’ Published 3 years ago

appium-webos-driver v0.1.0-1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

πŸš€ Appium webOS Driver

NPM version Downloads

Appium WebOS Driver is a test automation tool for LG devices. Appium webOS Driver automates LG applications, tested on emulators and real devices. Appium webOS Driver is part of the Appium test automation tool.

Installation

In order to use appium-webos-driver, we need to use appium version 1.16.0 or higher

npm i -g appium-webos-driver

πŸš€ Usage

Prerequisites: node 8.x or above npm LG SDK installed with emulators V3.0.0 or above Set the environment variables with the route of your LG SDK installation.

- (FOR MAC)
ARES_HOME=/opt/webOS_TV_SDK/CLI
export PATH=$PATH:$ARES_HOME/bin:$PATH
export PATH=$PATH:/opt/webOS_TV_SDK/CLI/bin:$PATH

* If you are using an Emulator with VirtualBox you need to add a new PORT (4724) in the settings/network/advanced/port forward. As a guest and host port.

Import webOS Driver, set and create a session:

import { WebOSDriver } from `appium-webos-driver`

let defaultCaps = {
  app: "/Users/my-computer/com.app.webostv.ipk",
  deviceName: "Home",
  platformName: "WebOS",
  udid: "12354ab9532rf321",
  appPackage: "com.app.webostv",
  fullReset: true
};

let driver = new WebOSDriver();
await driver.createSession(defaultCaps);

πŸš€ Capabilities

Desired capabilities (caps) are a set of keys and values (i.e., a map or hash) sent to the Appium server to tell the server what kind of automation session we’re interested in starting up. There are various capabilities that can modify the behavior of the server during automation.

CapabilityMandatory FieldsDescription
appβœ…The absolute local path or remote http URL to a .zip1
appPackageβœ…The appPackage is the identification for app inside the OS
deviceNameβœ…The kind of device to use1
platformNameβœ…Platform target will be automated1
noResetπŸ”²Don't reset app state before this session. See in the osicial documentation of Appium for more details2
fullResetπŸ”²Perform a complete reset. See in the osicial documentation of Appium for more details2
newCommandTimeoutπŸ”²How long (in seconds) Appium will wait for a new command from the client before assuming the client quit and ending the session1

1 Appium Desired Capabilities

2 Reset Strategies

πŸš€ Commands

  • getAttribute