Skip to content

Commit 1e30207

Browse files
authored
feat: Add WebOS Driver (appium#15260)
* Add WebOS Driver * Update appium.js
1 parent 6040817 commit 1e30207

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

docs/en/about-appium/platform-support.md

+4
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,7 @@ This section lists drivers that are supported by vendors and community.
9696
### Roku Support
9797

9898
- The [Roku Driver](https://github.com/cbuelvasc/appium-roku-driver)
99+
100+
### WebOS Support
101+
102+
- The [WebOS Driver](https://github.com/cbuelvasc/appium-webos-driver)

lib/appium.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ const PLATFORMS = {
2020
MAC: 'mac',
2121
TIZEN: 'tizen',
2222
LINUX: 'linux',
23-
ROKU: 'roku'
23+
ROKU: 'roku',
24+
WEBOS: 'webos'
2425
};
2526

2627
const AUTOMATION_NAMES = {
@@ -40,6 +41,7 @@ const AUTOMATION_NAMES = {
4041
SAFARI: 'Safari',
4142
GECKO: 'Gecko',
4243
ROKU: 'Roku',
44+
WEBOS: 'WebOS'
4345
};
4446
const DRIVER_MAP = {
4547
[AUTOMATION_NAMES.UIAUTOMATOR2.toLowerCase()]: {
@@ -102,6 +104,10 @@ const DRIVER_MAP = {
102104
driverClassName: 'RokuDriver',
103105
driverPackage: 'appium-roku-driver'
104106
},
107+
[AUTOMATION_NAMES.WEBOS.toLowerCase()]: {
108+
driverClassName: 'WebOSDriver',
109+
driverPackage: 'appium-webos-driver'
110+
},
105111
};
106112

107113
const PLATFORMS_MAP = {
@@ -153,6 +159,7 @@ const PLATFORMS_MAP = {
153159
[PLATFORMS.TIZEN]: () => AUTOMATION_NAMES.TIZEN,
154160
[PLATFORMS.LINUX]: () => AUTOMATION_NAMES.GECKO,
155161
[PLATFORMS.ROKU]: () => AUTOMATION_NAMES.ROKU,
162+
[PLATFORMS.WEBOS]: () => AUTOMATION_NAMES.WEBOS
156163
};
157164

158165
const desiredCapabilityConstraints = {

0 commit comments

Comments
 (0)