MCPcopy Create free account
hub / github.com/appium/appium / assertFeatureEnabled

Method assertFeatureEnabled

packages/base-driver/lib/basedriver/core.ts:276–285  ·  view source on GitHub ↗

* Assert that a given feature is enabled and throw a helpful error if it's * not * * @param name - name of feature/command

(name: string)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

isFeatureEnabledMethod · 0.95

Tested by

no test coverage detected