appium-lg-webos-driver
Version:
LG WebOS support for Appium
80 lines (77 loc) • 1.57 kB
JavaScript
export const CAP_CONSTRAINTS = Object.freeze(
/** @type {const} */ ({
platformName: {
isString: true,
inclusionCaseInsensitive: ['LGTV'],
presence: true,
},
deviceName: {
isString: true,
presence: true,
},
deviceHost: {
isString: true,
presence: true,
},
app: {
isString: true,
},
appId: {
isString: true,
presence: true,
},
debuggerPort: {
isNumber: true,
},
websocketPort: {
isNumber: true,
},
websocketPortSecure: {
isNumber: true,
},
useSecureWebsocket: {
isBoolean: true,
},
chromedriverExecutable: {
isString: true,
},
chromedriverExecutableDir: {
isString: true,
},
autoExtendDevMode: {
isBoolean: true,
},
appLaunchParams: {
isObject: true,
},
appLaunchCooldown: {
isNumber: true,
},
remoteOnly: {
isBoolean: true,
},
rcMode: {
isString: true,
inclusionCaseInsensitive: ['rc', 'js'],
},
keyCooldown: {
isNumber: true,
},
showChromedriverLog: {
isBoolean: true
},
})
);
export const DEFAULT_CAPS = Object.freeze(/** @type {const} */({
'appium:debuggerPort': 9998,
'appium:websocketPort': 3000,
'appium:websocketPortSecure': 3001,
'appium:useSecureWebsocket': false,
'appium:autoExtendDevMode': true,
'appium:appLaunchCooldown': 3000,
'appium:keyCooldown': 750,
'appium:rcMode': 'js',
}));
/**
* @typedef {typeof CAP_CONSTRAINTS} WebOsConstraints
*/