Skip to content

Commit ccb792e

Browse files
authored
fix: improve the way to show deprecated appium v1 message (#3992)
1 parent 9a102d2 commit ccb792e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: lib/helper/Appium.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,11 @@ class Appium extends Webdriver {
183183
this.axios = axios.create();
184184

185185
webdriverio = require('webdriverio');
186-
console.log('The Appium core team does not maintain Appium 1.x anymore since the 1st of January 2022. Please migrating to Appium 2.x by adding appiumV2: true to your config.\nThis Appium 1.x support will be removed in next major release');
186+
if (!config.appiumV2) {
187+
console.log('The Appium core team does not maintain Appium 1.x anymore since the 1st of January 2022. Please migrating to Appium 2.x by adding appiumV2: true to your config.');
188+
console.log('More info: https://bit.ly/appium-v2-migration');
189+
console.log('This Appium 1.x support will be removed in next major release.');
190+
}
187191
}
188192

189193
_validateConfig(config) {

0 commit comments

Comments
 (0)