* Assert that a given feature is enabled and throw a helpful error if it's * not * * @param name - name of feature/command
(name: string)
| 274 | * @param name - name of feature/command |
| 275 | */ |
| 276 | assertFeatureEnabled(name: string): void { |
| 277 | if (!this.isFeatureEnabled(name)) { |
| 278 | throw new Error( |
| 279 | `Potentially insecure feature '${name}' has not been ` + |
| 280 | `enabled. If you want to enable this feature and accept ` + |
| 281 | `the security ramifications, please do so by following ` + |
| 282 | `the documented instructions at http://appium.io/docs/en/latest/guides/security/`, |
| 283 | ); |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | /** |
| 288 | * Assert that a given locator strategy is supported by this driver, and throw otherwise |
nothing calls this directly
no test coverage detected