| 176 | |
| 177 | // @ts-ignore |
| 178 | constructor(config) { |
| 179 | super(config) |
| 180 | |
| 181 | this.isRunning = false |
| 182 | this.appiumV2 = config.appiumV2 !== false |
| 183 | this.axios = axios.create() |
| 184 | |
| 185 | if (this.appiumV2 === false) { |
| 186 | console.log('Appium 1.x is no longer maintained by the Appium team (since 2022-01-01).') |
| 187 | console.log('More info: https://bit.ly/appium-v2-migration') |
| 188 | console.log('Appium 1.x support will be removed in the next major CodeceptJS release.') |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | _validateConfig(config) { |
| 193 | if (!(config.app || config.platform) && !config.browser) { |