feat: Add Safari driver to the list of available automation names
MODIFY
lib/appium.js
lib/appium.js
@@ -34,6 +34,7 @@ const AUTOMATION_NAMES = {
WINDOWS: 'Windows',
MAC: 'Mac',
FLUTTER: 'Flutter',
+ SAFARI: 'Safari',
};
const DRIVER_MAP = {
[AUTOMATION_NAMES.UIAUTOMATOR2.toLowerCase()]: {
@@ -80,6 +81,10 @@ const DRIVER_MAP = {
driverClassName: 'FlutterDriver',
driverPackage: 'appium-flutter-driver'
},
+ [AUTOMATION_NAMES.SAFARI.toLowerCase()]: {
+ driverClassName: 'SafariDriver',
+ driverPackage: 'appium-safari-driver'
+ },
};
const PLATFORMS_MAP = {

MODIFY
package.json
package.json
"appium-flutter-driver": "^0",
"appium-ios-driver": "4.x",
"appium-mac-driver": "1.x",
+ "appium-safari-driver": "^2.1.0",
"appium-support": "2.x",
"appium-tizen-driver": "^1.1.1-beta.4",
"appium-uiautomator2-driver": "^1.37.1",

feat: Add Safari driver to the list of available automation names (#14866)