Skip to content

fix: improve the way to show deprecated appium v1 message #3992

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/helper/Appium.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ class Appium extends Webdriver {
this.axios = axios.create();

webdriverio = require('webdriverio');
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');
if (!config.appiumV2) {
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.');
console.log('More info: https://bit.ly/appium-v2-migration');
console.log('This Appium 1.x support will be removed in next major release.');
}
}

_validateConfig(config) {
Expand Down