Skip to content

Commit

Permalink
feat: Add WebOS Driver (appium#15260)
Browse files Browse the repository at this point in the history
* Add WebOS Driver

* Update appium.js
  • Loading branch information
cbuelvasc authored Apr 11, 2021
1 parent 6040817 commit 1e30207
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/en/about-appium/platform-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,7 @@ This section lists drivers that are supported by vendors and community.
### Roku Support

- The [Roku Driver](https://github.com/cbuelvasc/appium-roku-driver)

### WebOS Support

- The [WebOS Driver](https://github.com/cbuelvasc/appium-webos-driver)
9 changes: 8 additions & 1 deletion lib/appium.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ const PLATFORMS = {
MAC: 'mac',
TIZEN: 'tizen',
LINUX: 'linux',
ROKU: 'roku'
ROKU: 'roku',
WEBOS: 'webos'
};

const AUTOMATION_NAMES = {
Expand All @@ -40,6 +41,7 @@ const AUTOMATION_NAMES = {
SAFARI: 'Safari',
GECKO: 'Gecko',
ROKU: 'Roku',
WEBOS: 'WebOS'
};
const DRIVER_MAP = {
[AUTOMATION_NAMES.UIAUTOMATOR2.toLowerCase()]: {
Expand Down Expand Up @@ -102,6 +104,10 @@ const DRIVER_MAP = {
driverClassName: 'RokuDriver',
driverPackage: 'appium-roku-driver'
},
[AUTOMATION_NAMES.WEBOS.toLowerCase()]: {
driverClassName: 'WebOSDriver',
driverPackage: 'appium-webos-driver'
},
};

const PLATFORMS_MAP = {
Expand Down Expand Up @@ -153,6 +159,7 @@ const PLATFORMS_MAP = {
[PLATFORMS.TIZEN]: () => AUTOMATION_NAMES.TIZEN,
[PLATFORMS.LINUX]: () => AUTOMATION_NAMES.GECKO,
[PLATFORMS.ROKU]: () => AUTOMATION_NAMES.ROKU,
[PLATFORMS.WEBOS]: () => AUTOMATION_NAMES.WEBOS
};

const desiredCapabilityConstraints = {
Expand Down

0 comments on commit 1e30207

Please sign in to comment.