@applitools/driver 1.19.1 → 1.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/driver.js +12 -0
- package/package.json +1 -1
- package/types/driver.d.ts +16 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.19.2](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.19.1...js/driver@1.19.2) (2024-10-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* cache key for offline execution ([#2552](https://github.com/Applitools-Dev/sdk/issues/2552)) ([d0d1138](https://github.com/Applitools-Dev/sdk/commit/d0d11386be0f82c9e59e753bd0dc97aa3b05d93e))
|
|
9
|
+
|
|
3
10
|
## [1.19.1](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.19.0...js/driver@1.19.1) (2024-09-16)
|
|
4
11
|
|
|
5
12
|
|
package/dist/driver.js
CHANGED
|
@@ -33,6 +33,7 @@ const helper_android_1 = require("./helper-android");
|
|
|
33
33
|
const user_agent_1 = require("./user-agent");
|
|
34
34
|
const capabilities_1 = require("./capabilities");
|
|
35
35
|
const utils = __importStar(require("@applitools/utils"));
|
|
36
|
+
const util_1 = require("util");
|
|
36
37
|
const snippets = require('@applitools/snippets');
|
|
37
38
|
const drivers = new WeakMap();
|
|
38
39
|
class Driver {
|
|
@@ -58,6 +59,17 @@ class Driver {
|
|
|
58
59
|
});
|
|
59
60
|
this._currentContext = this._mainContext;
|
|
60
61
|
}
|
|
62
|
+
[util_1.inspect.custom]() {
|
|
63
|
+
return {
|
|
64
|
+
driverInfo: this._driverInfo,
|
|
65
|
+
environment: this._environment,
|
|
66
|
+
viewport: this._viewport,
|
|
67
|
+
helper: this._helper,
|
|
68
|
+
state: this._state,
|
|
69
|
+
customConfig: this._customConfig,
|
|
70
|
+
features: this._features,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
61
73
|
get logger() {
|
|
62
74
|
return this._logger;
|
|
63
75
|
}
|
package/package.json
CHANGED
package/types/driver.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import type { Size, Region } from '@applitools/utils';
|
|
2
3
|
import type { DriverInfo, Capabilities, UserAgent, Environment, Viewport, Features, ScreenOrientation, Cookie } from './types';
|
|
3
4
|
import { type Selector } from './selector';
|
|
@@ -7,6 +8,10 @@ import { type Logger } from '@applitools/logger';
|
|
|
7
8
|
import { Context, type ContextReference } from './context';
|
|
8
9
|
import { HelperIOS } from './helper-ios';
|
|
9
10
|
import { HelperAndroid } from './helper-android';
|
|
11
|
+
import { inspect } from 'util';
|
|
12
|
+
type DriverState<T extends SpecType> = {
|
|
13
|
+
nmlElement?: Element<T> | null;
|
|
14
|
+
};
|
|
10
15
|
type DriverOptions<T extends SpecType> = {
|
|
11
16
|
spec: SpecDriver<T>;
|
|
12
17
|
driver: T['driver'];
|
|
@@ -30,6 +35,17 @@ export declare class Driver<T extends SpecType> {
|
|
|
30
35
|
protected readonly _spec: SpecDriver<T>;
|
|
31
36
|
protected readonly _original: this;
|
|
32
37
|
constructor(options: DriverOptions<T>);
|
|
38
|
+
[inspect.custom](): {
|
|
39
|
+
driverInfo: DriverInfo | undefined;
|
|
40
|
+
environment: Environment | undefined;
|
|
41
|
+
viewport: Viewport | undefined;
|
|
42
|
+
helper: HelperAndroid<T> | HelperIOS<T> | null | undefined;
|
|
43
|
+
state: DriverState<T>;
|
|
44
|
+
customConfig: {
|
|
45
|
+
useCeilForViewportSize?: boolean | undefined;
|
|
46
|
+
};
|
|
47
|
+
features: Features | undefined;
|
|
48
|
+
};
|
|
33
49
|
get logger(): Logger;
|
|
34
50
|
get target(): T['driver'];
|
|
35
51
|
get guid(): string;
|