MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / constructor

Function constructor

apps/ui/e2e/page-object-base-model.ts:9–16  ·  view source on GitHub ↗
(protected _driver: AppiumDriver, protected _navigationLinks: Array<string>, elementCacheStrategy: ElementCacheStrategy = ElementCacheStrategy.none)

Source from the content-addressed store, hash-verified

7 public navigationHelper: NavigationHelper;
8
9 constructor(protected _driver: AppiumDriver, protected _navigationLinks: Array<string>, elementCacheStrategy: ElementCacheStrategy = ElementCacheStrategy.none) {
10 this.navigationHelper = new NavigationHelper(this._driver, this._navigationLinks, elementCacheStrategy);
11 this._driver.imageHelper.options.overwriteActualImage = process.env["OVERWRITE_ACTUAL_IMAGE"] === "true";
12 this._driver.imageHelper.options.waitBeforeCreatingInitialImageCapture = +process.env["WAIT_BEFORE_CREATING_INITIAL_IMAGE_CAPTURE"] || 9000;
13 this._driver.imageHelper.options.keepOriginalImageSize = false;
14 this._driver.imageHelper.options.tolerance = 0;
15 this._driver.imageHelper.options.toleranceType = ImageOptions.pixel;
16 }
17
18 async initSuite() {
19 await this.navigationHelper.initSuite();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected