vasu-playwright-utils 0.12.2 → 0.13.0

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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  [![GitHub stars](https://img.shields.io/github/stars/vasu31dev/playwright-ts-lib)](https://github.com/vasu31dev/playwright-ts-lib/stargazers)
4
4
  ![Last Commit](https://img.shields.io/github/last-commit/vasu31dev/playwright-ts-lib) ![Pull Requests](https://img.shields.io/github/issues-pr-raw/vasu31dev/playwright-ts-lib)
5
+ [![npm version](https://img.shields.io/npm/v/vasu-playwright-utils.svg)](https://www.npmjs.com/package/vasu-playwright-utils)
6
+ [![Release Notes](https://img.shields.io/badge/Release%20Notes-📝-brightgreen)](https://github.com/vasu31dev/playwright-ts-lib/blob/main/CHANGELOG.md)
5
7
 
6
8
  ## About
7
9
 
@@ -31,10 +33,14 @@ import { getDefaultLoadState } from 'vasu-playwright-utils';
31
33
  // Your code here
32
34
  ```
33
35
 
34
- ## License
36
+ ## Issues and Feedback
35
37
 
36
- This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
38
+ If you encounter any issues or have feedback, please [Raise an Issue](https://github.com/vasu31dev/playwright-ts-lib/issues) on GitHub.
39
+
40
+ ## Contributions
37
41
 
38
- ## Support and Feedback
42
+ We welcome contributions! Feel free to submit a [Pull Request](https://github.com/vasu31dev/playwright-ts-lib/pulls) on GitHub.
39
43
 
40
- If you encounter any issues or have feedback, please [create an issue](https://github.com/vasu31dev/playwright-ts-lib/issues) on GitHub.
44
+ ## License
45
+
46
+ This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
@@ -17,20 +17,24 @@ export type WaitForLoadStateOptions = Parameters<Page['waitForLoadState']>[0];
17
17
  export type VisibilityOption = {
18
18
  onlyVisible?: boolean;
19
19
  };
20
- export type ClickOptions = Parameters<Locator['click']>[0] & VisibilityOption & {
20
+ export type StabilityOption = {
21
+ stable?: boolean;
22
+ };
23
+ export type LoadstateOption = {
21
24
  loadState?: WaitForLoadStateOptions;
22
25
  };
23
- export type FillOptions = Parameters<Locator['fill']>[1] & VisibilityOption;
24
- export type PressSequentiallyOptions = Parameters<Locator['pressSequentially']>[1] & VisibilityOption;
25
- export type ClearOptions = Parameters<Locator['clear']>[0] & VisibilityOption;
26
- export type SelectValues = Parameters<Locator['selectOption']>[0] & VisibilityOption;
27
- export type SelectOptions = Parameters<Locator['selectOption']>[1] & VisibilityOption;
28
- export type CheckOptions = Parameters<Locator['check']>[0] & VisibilityOption;
29
- export type HoverOptions = Parameters<Locator['hover']>[0] & VisibilityOption;
26
+ export type ClickOptions = Parameters<Locator['click']>[0] & VisibilityOption & StabilityOption & LoadstateOption;
27
+ export type FillOptions = Parameters<Locator['fill']>[1] & VisibilityOption & StabilityOption;
28
+ export type PressSequentiallyOptions = Parameters<Locator['pressSequentially']>[1] & VisibilityOption & StabilityOption;
29
+ export type ClearOptions = Parameters<Locator['clear']>[0] & VisibilityOption & StabilityOption;
30
+ export type SelectOptions = Parameters<Locator['selectOption']>[1] & VisibilityOption & StabilityOption;
31
+ export type CheckOptions = Parameters<Locator['check']>[0] & VisibilityOption & StabilityOption;
32
+ export type HoverOptions = Parameters<Locator['hover']>[0] & VisibilityOption & StabilityOption;
33
+ export type UploadOptions = Parameters<Locator['setInputFiles']>[1] & VisibilityOption & StabilityOption;
30
34
  export type UploadValues = Parameters<Locator['setInputFiles']>[0] & VisibilityOption;
31
- export type UploadOptions = Parameters<Locator['setInputFiles']>[1] & VisibilityOption;
32
- export type DragOptions = Parameters<Locator['dragTo']>[1] & VisibilityOption;
33
- export type DoubleClickOptions = Parameters<Locator['dblclick']>[0] & VisibilityOption;
35
+ export type DragOptions = Parameters<Locator['dragTo']>[1] & VisibilityOption & StabilityOption;
36
+ export type DoubleClickOptions = Parameters<Locator['dblclick']>[0] & VisibilityOption & StabilityOption;
37
+ export type ActionOptions = ClickOptions | FillOptions | PressSequentiallyOptions | ClearOptions | SelectOptions | CheckOptions | HoverOptions | UploadOptions | DragOptions | DoubleClickOptions;
34
38
  /**
35
39
  * 3. Expect Options: These types are used for assertions, Timeouts, etc in tests.
36
40
  * They are based on the parameters of Playwright's built-in expect methods.
@@ -1 +1 @@
1
- {"version":3,"file":"optional-parameter-types.d.ts","sourceRoot":"","sources":["../../../../src/vasu-playwright-lib/types/optional-parameter-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACtD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9D,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE9E;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AACzD,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,GACxD,gBAAgB,GAAG;IACjB,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC,CAAC;AACJ,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AAC5E,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AACtG,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,gBAA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CAAC;AAC1E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,kBAAkB,GAAG,aAAa,CAAC;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AAC/E,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AACtF,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AACpF,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AACtF,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AACxF,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AAEpG,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"optional-parameter-types.d.ts","sourceRoot":"","sources":["../../../../src/vasu-playwright-lib/types/optional-parameter-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,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CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,CAAC,EAAE,MAAM,GAAG,kBAAkB,GAAG,aAAa,CAAC;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AAC/E,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AACtF,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AACpF,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AACtF,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AACxF,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC;AAEpG,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
@@ -3,11 +3,7 @@
3
3
  * These actions include navigation, interaction with page elements, handling of dialogs, and more.
4
4
  */
5
5
  import { Locator } from '@playwright/test';
6
- import { CheckOptions, ClearOptions, ClickOptions, DoubleClickOptions, DragOptions, FillOptions, HoverOptions, PressSequentiallyOptions, SelectOptions, TimeoutOption, UploadOptions, UploadValues, VisibilityOption } from '../types/optional-parameter-types';
7
- /**
8
- * 1. Actions: This section contains functions for interacting with elements on a web page.
9
- * These functions include clicking, filling input fields, typing, clearing input fields, checking and unchecking checkboxes, selecting options in dropdowns, and more.
10
- */
6
+ import { CheckOptions, ClearOptions, ClickOptions, DoubleClickOptions, DragOptions, FillOptions, HoverOptions, PressSequentiallyOptions, SelectOptions, StabilityOption, TimeoutOption, UploadOptions, UploadValues, VisibilityOption } from '../types/optional-parameter-types';
11
7
  /**
12
8
  * Clicks on a specified element.
13
9
  * @param {string | Locator} input - The element to click on.
@@ -149,7 +145,7 @@ export declare function hover(input: string | Locator, options?: HoverOptions):
149
145
  * @param {string | Locator} input - The element to focus on.
150
146
  * @param {TimeoutOption} options - The timeout options.
151
147
  */
152
- export declare function focus(input: string | Locator, options?: TimeoutOption & VisibilityOption): Promise<void>;
148
+ export declare function focus(input: string | Locator, options?: TimeoutOption & VisibilityOption & StabilityOption): Promise<void>;
153
149
  /**
154
150
  * Drags and drops a specified element to a destination.
155
151
  * @param {string | Locator} input - The element to drag.
@@ -1 +1 @@
1
- {"version":3,"file":"action-utils.d.ts","sourceRoot":"","sources":["../../../../src/vasu-playwright-lib/utils/action-utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EACL,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,wBAAwB,EACxB,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,gBAAgB,EACjB,MAAM,mCAAmC,CAAC;AAK3C;;;GAGG;AAEH;;;;GAIG;AACH,wBAAsB,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAG1F;AAED;;;;GAIG;AACH,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO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AI,CAAC,CAGf;AAED;;;;;GAKG;AACH,wBAAsB,WAAW,CAC/B,KAAK,EAAE,MAAM,GAAG,OAAO,EACvB,IAAI,EAAE,MAAM,GAAG,OAAO,EACtB,OAAO,CAAC,EAAE,WAAW,GACpB,OAAO,CAAC,IAAI,CAAC,CAIf;AAED;;;;GAIG;AACH,wBAAsB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC,CAGtG;AAED;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAS/G;AAED;;;;;GAKG;AACH,wBAAsB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAGrH;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAG3G;AAED;;;GAGG;AAEH;;;;;;GAMG;AACH,wBAAsB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAG/F;AAED;;;;;;;;GAQG;AACH,wBAAsB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAO/F"}
@@ -6,10 +6,31 @@ const page_utils_1 = require("./page-utils");
6
6
  const timeouts_1 = require("../constants/timeouts");
7
7
  const locator_utils_1 = require("./locator-utils");
8
8
  const loadstate_1 = require("../constants/loadstate");
9
+ const element_utils_1 = require("./element-utils");
9
10
  /**
10
11
  * 1. Actions: This section contains functions for interacting with elements on a web page.
11
12
  * These functions include clicking, filling input fields, typing, clearing input fields, checking and unchecking checkboxes, selecting options in dropdowns, and more.
12
13
  */
14
+ /**
15
+ * Returns a locator, ensuring visibility by default, with the option to override visibility and stability checks.
16
+ * Intended for internal use, this function facilitates retrieving locators under specific conditions—
17
+ * visibility (enabled by default) and stability (optional), as per the requirements for further actions.
18
+ * Users have the flexibility to adjust these checks via the `options` parameter.
19
+ *
20
+ * @param input - The selector string or Locator object used to find the element. This serves as the base for locating the element.
21
+ * @param options - Optional. Configuration for locator retrieval. Allows overriding the default behavior for visibility and enables stability checks.
22
+ * Use `{ onlyVisible: false }` to include non-visible elements and `{ stable: true }` to wait for the element to stabilize.
23
+ * @returns A Promise that resolves to a Locator. This locator has been checked for visibility (enabled by default) and,
24
+ * if specified in `options`, for stability, ensuring it meets the specified conditions.
25
+ */
26
+ function getLocatorWithStableAndVisibleOptions(input, options) {
27
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
+ const locator = (0, locator_utils_1.getVisibleLocator)(input, options);
29
+ if (options === null || options === void 0 ? void 0 : options.stable)
30
+ yield (0, element_utils_1.waitForElementToBeStable)(input, options);
31
+ return locator;
32
+ });
33
+ }
13
34
  /**
14
35
  * Clicks on a specified element.
15
36
  * @param {string | Locator} input - The element to click on.
@@ -17,7 +38,7 @@ const loadstate_1 = require("../constants/loadstate");
17
38
  */
18
39
  function click(input, options) {
19
40
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
20
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
41
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
21
42
  yield locator.click(options);
22
43
  });
23
44
  }
@@ -56,7 +77,7 @@ exports.clickAndNavigate = clickAndNavigate;
56
77
  */
57
78
  function fill(input, value, options) {
58
79
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
59
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
80
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
60
81
  yield locator.fill(value, options);
61
82
  });
62
83
  }
@@ -69,7 +90,7 @@ exports.fill = fill;
69
90
  */
70
91
  function fillAndEnter(input, value, options) {
71
92
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
72
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
93
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
73
94
  yield locator.fill(value, options);
74
95
  yield locator.press('Enter');
75
96
  });
@@ -83,7 +104,7 @@ exports.fillAndEnter = fillAndEnter;
83
104
  */
84
105
  function fillAndTab(input, value, options) {
85
106
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
86
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
107
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
87
108
  yield locator.fill(value, options);
88
109
  yield locator.press('Tab');
89
110
  });
@@ -97,7 +118,7 @@ exports.fillAndTab = fillAndTab;
97
118
  */
98
119
  function pressSequentially(input, value, options) {
99
120
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
100
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
121
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
101
122
  yield locator.pressSequentially(value, options);
102
123
  });
103
124
  }
@@ -123,7 +144,7 @@ exports.pressPageKeyboard = pressPageKeyboard;
123
144
  */
124
145
  function pressLocatorKeyboard(input, key, options) {
125
146
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
126
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
147
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
127
148
  yield locator.press(key, options);
128
149
  });
129
150
  }
@@ -135,7 +156,7 @@ exports.pressLocatorKeyboard = pressLocatorKeyboard;
135
156
  */
136
157
  function clear(input, options) {
137
158
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
138
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
159
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
139
160
  yield locator.clear(options);
140
161
  });
141
162
  }
@@ -147,7 +168,7 @@ exports.clear = clear;
147
168
  */
148
169
  function check(input, options) {
149
170
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
150
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
171
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
151
172
  yield locator.check(options);
152
173
  });
153
174
  }
@@ -159,7 +180,7 @@ exports.check = check;
159
180
  */
160
181
  function uncheck(input, options) {
161
182
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
162
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
183
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
163
184
  yield locator.uncheck(options);
164
185
  });
165
186
  }
@@ -172,7 +193,7 @@ exports.uncheck = uncheck;
172
193
  */
173
194
  function selectByValue(input, value, options) {
174
195
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
175
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
196
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
176
197
  yield locator.selectOption({ value: value }, options);
177
198
  });
178
199
  }
@@ -185,7 +206,7 @@ exports.selectByValue = selectByValue;
185
206
  */
186
207
  function selectByValues(input, value, options) {
187
208
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
188
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
209
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
189
210
  yield locator.selectOption(value, options);
190
211
  });
191
212
  }
@@ -198,7 +219,7 @@ exports.selectByValues = selectByValues;
198
219
  */
199
220
  function selectByText(input, text, options) {
200
221
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
201
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
222
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
202
223
  yield locator.selectOption({ label: text }, options);
203
224
  });
204
225
  }
@@ -211,7 +232,7 @@ exports.selectByText = selectByText;
211
232
  */
212
233
  function selectByIndex(input, index, options) {
213
234
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
214
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
235
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
215
236
  yield locator.selectOption({ index: index }, options);
216
237
  });
217
238
  }
@@ -320,7 +341,7 @@ exports.getAlertText = getAlertText;
320
341
  */
321
342
  function hover(input, options) {
322
343
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
323
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
344
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
324
345
  yield locator.hover(options);
325
346
  });
326
347
  }
@@ -332,7 +353,7 @@ exports.hover = hover;
332
353
  */
333
354
  function focus(input, options) {
334
355
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
335
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
356
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
336
357
  yield locator.focus(options);
337
358
  });
338
359
  }
@@ -345,8 +366,8 @@ exports.focus = focus;
345
366
  */
346
367
  function dragAndDrop(input, dest, options) {
347
368
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
348
- const drag = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
349
- const drop = (0, locator_utils_1.getLocator)(dest, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
369
+ const drag = yield getLocatorWithStableAndVisibleOptions(input, options);
370
+ const drop = yield getLocatorWithStableAndVisibleOptions(dest, options);
350
371
  yield drag.dragTo(drop, options);
351
372
  });
352
373
  }
@@ -358,7 +379,7 @@ exports.dragAndDrop = dragAndDrop;
358
379
  */
359
380
  function doubleClick(input, options) {
360
381
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
361
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
382
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
362
383
  yield locator.dblclick(options);
363
384
  });
364
385
  }
@@ -370,7 +391,7 @@ exports.doubleClick = doubleClick;
370
391
  */
371
392
  function downloadFile(input, path, options) {
372
393
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
373
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
394
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
374
395
  const downloadPromise = (0, page_utils_1.getPage)().waitForEvent('download');
375
396
  yield click(locator, options);
376
397
  const download = yield downloadPromise;
@@ -389,7 +410,7 @@ exports.downloadFile = downloadFile;
389
410
  */
390
411
  function uploadFiles(input, path, options) {
391
412
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
392
- const locator = (0, locator_utils_1.getLocator)(input, Object.assign(Object.assign({}, loadstate_1.defaultVisibleOnlyOption), options));
413
+ const locator = yield getLocatorWithStableAndVisibleOptions(input, options);
393
414
  yield locator.setInputFiles(path, options);
394
415
  });
395
416
  }
@@ -1 +1 @@
1
- {"version":3,"file":"action-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BAAsB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAGhH;AAED;;;;;GAKG;AACH,wBAAsB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAGhH"}
@@ -210,7 +210,6 @@ exports.isElementChecked = isElementChecked;
210
210
  function waitForElementToBeStable(input, options) {
211
211
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
212
212
  let result = false;
213
- // eslint-disable-next-line playwright/require-top-level-describe
214
213
  yield test_1.test.step('waitForElementToBeStable', () => tslib_1.__awaiter(this, void 0, void 0, function* () {
215
214
  const locator = (0, locator_utils_1.getLocator)(input);
216
215
  const maxWaitTime = (options === null || options === void 0 ? void 0 : options.timeout) || timeouts_1.SMALL_TIMEOUT;
@@ -1 +1 @@
1
- {"version":3,"file":"element-utils.js","sourceRoot":"","sources":["../../../../src/vasu-playwright-lib/utils/element-utils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;AAIH,mDAA6D;AAC7D,oDAAuE;AACvE,6CAAoC;AACpC,oCAAkC;AAClC,2CAAwC;AAExC;;;;GAIG;AAEH;;;;;GAKG;AACH,SAAsB,OAAO,CAAC,KAAuB,EAAE,OAAuB;;QAC5E,MAAM,OAAO,GAAG,IAAA,0BAAU,EAAC,KAAK,CAAC,CAAC;QAClC,OAAO,MAAM,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IAC1C,CAAC;CAAA;AAHD,0BAGC;AAED;;;;GAIG;AACH,SAAsB,WAAW,CAAC,KAAuB;;QACvD,MAAM,OAAO,GAAG,IAAA,0BAAU,EAAC,KAAK,CAAC,CAAC;QAClC,OAAO,MAAM,OAAO,CAAC,aAAa,EAAE,CAAC;IACvC,CAAC;CAAA;AAHD,kCAGC;AAED;;;;;GAKG;AACH,SAAs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locator} - The created Locator object.
16
16
  */
17
17
  export declare function getLocator(input: string | Locator, options?: LocatorOptions): Locator;
18
+ /**
19
+ * Returns a locator pointing to only visible element based on the input provided.
20
+ * By default, it returns locators that are visible. This behavior can be customized
21
+ * via the `options` parameter, allowing for more specific locator configurations.
22
+ *
23
+ * @param input - The selector string or Locator object to identify the element.
24
+ * @param options - Optional. Configuration options for the locator. Use `{ onlyVisible: false }`
25
+ * to include non-visible elements in the locator's search criteria.
26
+ * @returns A `Locator` instance pointing to an element that matches the specified
27
+ * criteria, prioritizing visibility unless overridden by `options`.
28
+ */
29
+ export declare function getVisibleLocator(input: string | Locator, options?: LocatorOptions): Locator;
18
30
  /**
19
31
  * Returns a Locator object with a specific testId. The global testId attribute is set in the playwright.config.ts file with default value as 'data-testid' if not set explicitly, but can be overridden by providing an attributeName.
20
32
  * @param {string | RegExp} testId - The testId to create the Locator from.
@@ -69,8 +81,8 @@ export declare function getAllLocators(input: string | Locator, options?: Locato
69
81
  * @returns {null | Frame} - The Frame object if found, otherwise null (if 'force' is true).
70
82
  * @throws {Error} - Throws an error if the frame is not found and 'force' is false.
71
83
  */
72
- export declare function getFrame(frameSelector: FrameOptions, { force }: {
73
- force?: boolean;
84
+ export declare function getFrame(frameSelector: FrameOptions, options?: {
85
+ force: boolean;
74
86
  }): null | Frame;
75
87
  /**
76
88
  * Returns a FrameLocator object based on the input provided.
@@ -1 +1 @@
1
- {"version":3,"file":"locator-utils.d.ts","sourceRoot":"","sources":["../../../../src/vasu-playwright-lib/utils/locator-utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,OAAO,EAAa,MAAM,kBAAkB,CAAC;AAE3E,OAAO,EACL,YAAY,EACZ,uBAAuB,EACvB,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACf,MAAM,mCAAmC,CAAC;AAE3C;;;GAGG;AAEH;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KA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AM,GAAG,OAAO,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC,CAE1G;AAED;;;GAGG;AAEH;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,aAAa,EAAE,YAAY,EAAE,OAAO;;CAAmB,GAAG,IAAI,GAAG,KAAK,CAO9F;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,YAAY,GAAG,YAAY,CAE/E;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAErG"}
@@ -4,10 +4,11 @@
4
4
  * These utilities make it easier to interact with elements on the page, providing a layer of abstraction over Playwright's built-in locator methods.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.getLocatorInFrame = exports.getFrameLocator = exports.getFrame = exports.getAllLocators = exports.getLocatorByPlaceholder = exports.getLocatorByLabel = exports.getLocatorByRole = exports.getLocatorByText = exports.getLocatorByTestId = exports.getLocator = void 0;
7
+ exports.getLocatorInFrame = exports.getFrameLocator = exports.getFrame = exports.getAllLocators = exports.getLocatorByPlaceholder = exports.getLocatorByLabel = exports.getLocatorByRole = exports.getLocatorByText = exports.getLocatorByTestId = exports.getVisibleLocator = exports.getLocator = void 0;
8
8
  const tslib_1 = require("tslib");
9
9
  const test_1 = require("@playwright/test");
10
10
  const page_utils_1 = require("./page-utils");
11
+ const __1 = require("..");
11
12
  /**
12
13
  * 1. Locators: This section contains functions and definitions related to locators.
13
14
  * Locators are used to find and interact with elements on the page.
@@ -23,6 +24,21 @@ function getLocator(input, options) {
23
24
  return (options === null || options === void 0 ? void 0 : options.onlyVisible) ? locator.locator('visible=true') : locator;
24
25
  }
25
26
  exports.getLocator = getLocator;
27
+ /**
28
+ * Returns a locator pointing to only visible element based on the input provided.
29
+ * By default, it returns locators that are visible. This behavior can be customized
30
+ * via the `options` parameter, allowing for more specific locator configurations.
31
+ *
32
+ * @param input - The selector string or Locator object to identify the element.
33
+ * @param options - Optional. Configuration options for the locator. Use `{ onlyVisible: false }`
34
+ * to include non-visible elements in the locator's search criteria.
35
+ * @returns A `Locator` instance pointing to an element that matches the specified
36
+ * criteria, prioritizing visibility unless overridden by `options`.
37
+ */
38
+ function getVisibleLocator(input, options) {
39
+ return getLocator(input, Object.assign(Object.assign({}, __1.defaultVisibleOnlyOption), options));
40
+ }
41
+ exports.getVisibleLocator = getVisibleLocator;
26
42
  /**
27
43
  * Returns a Locator object with a specific testId. The global testId attribute is set in the playwright.config.ts file with default value as 'data-testid' if not set explicitly, but can be overridden by providing an attributeName.
28
44
  * @param {string | RegExp} testId - The testId to create the Locator from.
@@ -100,9 +116,9 @@ exports.getAllLocators = getAllLocators;
100
116
  * @returns {null | Frame} - The Frame object if found, otherwise null (if 'force' is true).
101
117
  * @throws {Error} - Throws an error if the frame is not found and 'force' is false.
102
118
  */
103
- function getFrame(frameSelector, { force = false }) {
119
+ function getFrame(frameSelector, options = { force: false }) {
104
120
  const frame = (0, page_utils_1.getPage)().frame(frameSelector);
105
- if (force)
121
+ if (options.force)
106
122
  return frame;
107
123
  if (!frame) {
108
124
  throw new Error(`Frame not found with selector: ${JSON.stringify(frameSelector)}`);
@@ -1 +1 @@
1
- {"version":3,"file":"locator-utils.js","sourceRoot":"","sources":["../../../../src/vasu-playwright-lib/utils/locator-utils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;AAEH,2CAA2E;AAC3E,6CAAuC;AAUvC;;;GAGG;AAEH;;;;;GAKG;AACH,SAAgB,UAAU,CAAC,KAAuB,EAAE,OAAwB;IAC1E,MAAM,OAAO,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAA,oBAAO,GAAE,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IACtF,OAAO,CAAA,O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;
112
112
  * @param {GotoOptions} options - The navigation options.
113
113
  * @returns {Promise<null | Response>} - The navigation response or null if no response.
114
114
  */
115
- function gotoURL(path, options = { waitUntil: (0, constants_1.getDefaultLoadState)() }) {
116
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
115
+ function gotoURL(path_1) {
116
+ return tslib_1.__awaiter(this, arguments, void 0, function* (path, options = { waitUntil: (0, constants_1.getDefaultLoadState)() }) {
117
117
  return yield getPage().goto(path, options);
118
118
  });
119
119
  }
@@ -123,8 +123,8 @@ exports.gotoURL = gotoURL;
123
123
  * @param {NavigationOptions} [options] - Optional navigation options.
124
124
  * @returns {Promise<string>} - The URL of the page.
125
125
  */
126
- function getURL(options = { waitUntil: 'load' }) {
127
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
126
+ function getURL() {
127
+ return tslib_1.__awaiter(this, arguments, void 0, function* (options = { waitUntil: 'load' }) {
128
128
  try {
129
129
  yield waitForPageLoadState(options);
130
130
  return getPage().url();
@@ -1 +1 @@
1
- {"version":3,"file":"page-utils.js","sourceRoot":"","sources":["../../../../src/vasu-playwright-lib/utils/page-utils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;AAEH,oDAAsD;AACtD,2CAA0E;AAO1E,4CAAmD;AAEnD,IAAI,IAAU,CAAC;AAEf;;;GAGG;AACH,SAAgB,OAAO;IACrB,OAAO,IAAI,CAAC;AACd,CAAC;AAFD,0BAEC;AAED,SAAgB,UAAU;IACxB,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;AACxB,CAAC;AAFD,gCAEC;AAED;;;GAGG;AACH,SAAgB,OAAO,CAAC,YAAkB;IACxC,IAAI,GAAG,YAAY,CAAC;AACtB,CAAC;AAFD,0BAEC;AAED;;;GAGG;AACH,SAAgB,WAAW;IACzB,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC;AAChC,CAAC;AAFD,kCAEC;AAED;;;;;GAKG;AACH,SAAsB,UAAU,CAAC,MAAc,E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right Typescript Library with reusable utilities",
5
5
  "main": "./dist/src/vasu-playwright-lib/index.js",
6
6
  "types": "./dist/src/vasu-playwright-lib/index.d.ts",
@@ -45,29 +45,31 @@
45
45
  "node": ">=18.0.0"
46
46
  },
47
47
  "dependencies": {
48
- "@playwright/test": "~1.41.2",
49
- "@types/node": "^20.11.19",
50
- "@typescript-eslint/eslint-plugin": "^7.0.2",
51
- "@typescript-eslint/parser": "^7.0.2",
48
+ "@types/node": "^20.11.28",
49
+ "@typescript-eslint/eslint-plugin": "^7.2.0",
50
+ "@typescript-eslint/parser": "^7.2.0",
52
51
  "allure-commandline": "^2.27.0",
53
- "allure-playwright": "^2.12.2",
54
- "axios": "^1.6.7",
52
+ "allure-playwright": "^2.14.1",
53
+ "axios": "^1.6.8",
55
54
  "cross-env": "^7.0.3",
56
- "dotenv": "^16.4.4",
57
- "eslint": "^8.56.0",
55
+ "dotenv": "^16.4.5",
56
+ "eslint": "^8.57.0",
58
57
  "eslint-config-prettier": "^9.1.0",
59
58
  "eslint-import-resolver-typescript": "^3.6.1",
60
59
  "eslint-plugin-import": "^2.29.1",
61
- "eslint-plugin-jsdoc": "^48.1.0",
62
- "eslint-plugin-playwright": "^1.3.0",
60
+ "eslint-plugin-jsdoc": "^48.2.1",
61
+ "eslint-plugin-playwright": "^1.5.2",
63
62
  "eslint-plugin-prettier": "^5.1.3",
64
63
  "husky": "^9.0.11",
65
64
  "lint-staged": "^15.2.2",
66
65
  "prettier": "^3.2.5",
67
66
  "rimraf": "^5.0.5",
68
67
  "tslib": "^2.6.2",
69
- "typescript": "5.3.3",
70
- "winston": "^3.11.0"
68
+ "typescript": "5.4.2",
69
+ "winston": "^3.12.0"
70
+ },
71
+ "peerDependencies": {
72
+ "@playwright/test": ">=1.41.1"
71
73
  },
72
74
  "scripts": {
73
75
  "clean": "rimraf dist",
@@ -18,21 +18,30 @@ export type WaitForLoadStateOptions = Parameters<Page['waitForLoadState']>[0];
18
18
  * They are based on the parameters of Playwright's built-in action methods.
19
19
  */
20
20
  export type VisibilityOption = { onlyVisible?: boolean };
21
- export type ClickOptions = Parameters<Locator['click']>[0] &
22
- VisibilityOption & {
23
- loadState?: WaitForLoadStateOptions;
24
- };
25
- export type FillOptions = Parameters<Locator['fill']>[1] & VisibilityOption;
26
- export type PressSequentiallyOptions = Parameters<Locator['pressSequentially']>[1] & VisibilityOption;
27
- export type ClearOptions = Parameters<Locator['clear']>[0] & VisibilityOption;
28
- export type SelectValues = Parameters<Locator['selectOption']>[0] & VisibilityOption;
29
- export type SelectOptions = Parameters<Locator['selectOption']>[1] & VisibilityOption;
30
- export type CheckOptions = Parameters<Locator['check']>[0] & VisibilityOption;
31
- export type HoverOptions = Parameters<Locator['hover']>[0] & VisibilityOption;
21
+ export type StabilityOption = { stable?: boolean };
22
+ export type LoadstateOption = { loadState?: WaitForLoadStateOptions };
23
+ export type ClickOptions = Parameters<Locator['click']>[0] & VisibilityOption & StabilityOption & LoadstateOption;
24
+ export type FillOptions = Parameters<Locator['fill']>[1] & VisibilityOption & StabilityOption;
25
+ export type PressSequentiallyOptions = Parameters<Locator['pressSequentially']>[1] & VisibilityOption & StabilityOption;
26
+ export type ClearOptions = Parameters<Locator['clear']>[0] & VisibilityOption & StabilityOption;
27
+ export type SelectOptions = Parameters<Locator['selectOption']>[1] & VisibilityOption & StabilityOption;
28
+ export type CheckOptions = Parameters<Locator['check']>[0] & VisibilityOption & StabilityOption;
29
+ export type HoverOptions = Parameters<Locator['hover']>[0] & VisibilityOption & StabilityOption;
30
+ export type UploadOptions = Parameters<Locator['setInputFiles']>[1] & VisibilityOption & StabilityOption;
32
31
  export type UploadValues = Parameters<Locator['setInputFiles']>[0] & VisibilityOption;
33
- export type UploadOptions = Parameters<Locator['setInputFiles']>[1] & VisibilityOption;
34
- export type DragOptions = Parameters<Locator['dragTo']>[1] & VisibilityOption;
35
- export type DoubleClickOptions = Parameters<Locator['dblclick']>[0] & VisibilityOption;
32
+ export type DragOptions = Parameters<Locator['dragTo']>[1] & VisibilityOption & StabilityOption;
33
+ export type DoubleClickOptions = Parameters<Locator['dblclick']>[0] & VisibilityOption & StabilityOption;
34
+ export type ActionOptions =
35
+ | ClickOptions
36
+ | FillOptions
37
+ | PressSequentiallyOptions
38
+ | ClearOptions
39
+ | SelectOptions
40
+ | CheckOptions
41
+ | HoverOptions
42
+ | UploadOptions
43
+ | DragOptions
44
+ | DoubleClickOptions;
36
45
 
37
46
  /**
38
47
  * 3. Expect Options: These types are used for assertions, Timeouts, etc in tests.
@@ -5,6 +5,7 @@
5
5
  import { Locator } from '@playwright/test';
6
6
  import { getPage } from './page-utils';
7
7
  import {
8
+ ActionOptions,
8
9
  CheckOptions,
9
10
  ClearOptions,
10
11
  ClickOptions,
@@ -14,27 +15,50 @@ import {
14
15
  HoverOptions,
15
16
  PressSequentiallyOptions,
16
17
  SelectOptions,
18
+ StabilityOption,
17
19
  TimeoutOption,
18
20
  UploadOptions,
19
21
  UploadValues,
20
22
  VisibilityOption,
21
23
  } from '../types/optional-parameter-types';
22
24
  import { SMALL_TIMEOUT, STANDARD_TIMEOUT } from '../constants/timeouts';
23
- import { getLocator } from './locator-utils';
24
- import { defaultVisibleOnlyOption, getDefaultLoadState } from '../constants/loadstate';
25
+ import { getLocator, getVisibleLocator } from './locator-utils';
26
+ import { getDefaultLoadState } from '../constants/loadstate';
27
+ import { waitForElementToBeStable } from './element-utils';
25
28
 
26
29
  /**
27
30
  * 1. Actions: This section contains functions for interacting with elements on a web page.
28
31
  * These functions include clicking, filling input fields, typing, clearing input fields, checking and unchecking checkboxes, selecting options in dropdowns, and more.
29
32
  */
30
33
 
34
+ /**
35
+ * Returns a locator, ensuring visibility by default, with the option to override visibility and stability checks.
36
+ * Intended for internal use, this function facilitates retrieving locators under specific conditions—
37
+ * visibility (enabled by default) and stability (optional), as per the requirements for further actions.
38
+ * Users have the flexibility to adjust these checks via the `options` parameter.
39
+ *
40
+ * @param input - The selector string or Locator object used to find the element. This serves as the base for locating the element.
41
+ * @param options - Optional. Configuration for locator retrieval. Allows overriding the default behavior for visibility and enables stability checks.
42
+ * Use `{ onlyVisible: false }` to include non-visible elements and `{ stable: true }` to wait for the element to stabilize.
43
+ * @returns A Promise that resolves to a Locator. This locator has been checked for visibility (enabled by default) and,
44
+ * if specified in `options`, for stability, ensuring it meets the specified conditions.
45
+ */
46
+ async function getLocatorWithStableAndVisibleOptions(
47
+ input: string | Locator,
48
+ options?: ActionOptions,
49
+ ): Promise<Locator> {
50
+ const locator = getVisibleLocator(input, options);
51
+ if (options?.stable) await waitForElementToBeStable(input, options);
52
+ return locator;
53
+ }
54
+
31
55
  /**
32
56
  * Clicks on a specified element.
33
57
  * @param {string | Locator} input - The element to click on.
34
58
  * @param {ClickOptions} options - The click options.
35
59
  */
36
60
  export async function click(input: string | Locator, options?: ClickOptions): Promise<void> {
37
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
61
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
38
62
  await locator.click(options);
39
63
  }
40
64
 
@@ -67,7 +91,7 @@ export async function clickAndNavigate(input: string | Locator, options?: ClickO
67
91
  * @param {FillOptions} options - The fill options.
68
92
  */
69
93
  export async function fill(input: string | Locator, value: string, options?: FillOptions): Promise<void> {
70
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
94
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
71
95
  await locator.fill(value, options);
72
96
  }
73
97
 
@@ -78,7 +102,7 @@ export async function fill(input: string | Locator, value: string, options?: Fil
78
102
  * @param {FillOptions} options - The fill options.
79
103
  */
80
104
  export async function fillAndEnter(input: string | Locator, value: string, options?: FillOptions): Promise<void> {
81
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
105
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
82
106
  await locator.fill(value, options);
83
107
  await locator.press('Enter');
84
108
  }
@@ -90,7 +114,7 @@ export async function fillAndEnter(input: string | Locator, value: string, optio
90
114
  * @param {FillOptions} options - The fill options.
91
115
  */
92
116
  export async function fillAndTab(input: string | Locator, value: string, options?: FillOptions): Promise<void> {
93
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
117
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
94
118
  await locator.fill(value, options);
95
119
  await locator.press('Tab');
96
120
  }
@@ -106,7 +130,7 @@ export async function pressSequentially(
106
130
  value: string,
107
131
  options?: PressSequentiallyOptions,
108
132
  ): Promise<void> {
109
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
133
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
110
134
  await locator.pressSequentially(value, options);
111
135
  }
112
136
 
@@ -132,7 +156,7 @@ export async function pressLocatorKeyboard(
132
156
  key: string,
133
157
  options?: PressSequentiallyOptions,
134
158
  ): Promise<void> {
135
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
159
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
136
160
  await locator.press(key, options);
137
161
  }
138
162
 
@@ -142,7 +166,7 @@ export async function pressLocatorKeyboard(
142
166
  * @param {ClearOptions} options - The clear options.
143
167
  */
144
168
  export async function clear(input: string | Locator, options?: ClearOptions): Promise<void> {
145
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
169
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
146
170
  await locator.clear(options);
147
171
  }
148
172
 
@@ -152,7 +176,7 @@ export async function clear(input: string | Locator, options?: ClearOptions): Pr
152
176
  * @param {CheckOptions} options - The check options.
153
177
  */
154
178
  export async function check(input: string | Locator, options?: CheckOptions): Promise<void> {
155
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
179
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
156
180
  await locator.check(options);
157
181
  }
158
182
 
@@ -162,7 +186,7 @@ export async function check(input: string | Locator, options?: CheckOptions): Pr
162
186
  * @param {CheckOptions} options - The uncheck options.
163
187
  */
164
188
  export async function uncheck(input: string | Locator, options?: CheckOptions): Promise<void> {
165
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
189
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
166
190
  await locator.uncheck(options);
167
191
  }
168
192
 
@@ -173,7 +197,7 @@ export async function uncheck(input: string | Locator, options?: CheckOptions):
173
197
  * @param {SelectOptions} options - The select options.
174
198
  */
175
199
  export async function selectByValue(input: string | Locator, value: string, options?: SelectOptions): Promise<void> {
176
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
200
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
177
201
  await locator.selectOption({ value: value }, options);
178
202
  }
179
203
 
@@ -188,7 +212,7 @@ export async function selectByValues(
188
212
  value: Array<string>,
189
213
  options?: SelectOptions,
190
214
  ): Promise<void> {
191
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
215
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
192
216
  await locator.selectOption(value, options);
193
217
  }
194
218
 
@@ -199,7 +223,7 @@ export async function selectByValues(
199
223
  * @param {SelectOptions} options - The select options.
200
224
  */
201
225
  export async function selectByText(input: string | Locator, text: string, options?: SelectOptions): Promise<void> {
202
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
226
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
203
227
  await locator.selectOption({ label: text }, options);
204
228
  }
205
229
 
@@ -210,7 +234,7 @@ export async function selectByText(input: string | Locator, text: string, option
210
234
  * @param {SelectOptions} options - The select options.
211
235
  */
212
236
  export async function selectByIndex(input: string | Locator, index: number, options?: SelectOptions): Promise<void> {
213
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
237
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
214
238
  await locator.selectOption({ index: index }, options);
215
239
  }
216
240
 
@@ -323,7 +347,7 @@ export async function getAlertText(input: string | Locator, options?: TimeoutOpt
323
347
  * @param {HoverOptions} options - The hover options.
324
348
  */
325
349
  export async function hover(input: string | Locator, options?: HoverOptions): Promise<void> {
326
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
350
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
327
351
  await locator.hover(options);
328
352
  }
329
353
 
@@ -332,8 +356,11 @@ export async function hover(input: string | Locator, options?: HoverOptions): Pr
332
356
  * @param {string | Locator} input - The element to focus on.
333
357
  * @param {TimeoutOption} options - The timeout options.
334
358
  */
335
- export async function focus(input: string | Locator, options?: TimeoutOption & VisibilityOption): Promise<void> {
336
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
359
+ export async function focus(
360
+ input: string | Locator,
361
+ options?: TimeoutOption & VisibilityOption & StabilityOption,
362
+ ): Promise<void> {
363
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
337
364
  await locator.focus(options);
338
365
  }
339
366
 
@@ -348,8 +375,8 @@ export async function dragAndDrop(
348
375
  dest: string | Locator,
349
376
  options?: DragOptions,
350
377
  ): Promise<void> {
351
- const drag = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
352
- const drop = getLocator(dest, { ...defaultVisibleOnlyOption, ...options });
378
+ const drag = await getLocatorWithStableAndVisibleOptions(input, options);
379
+ const drop = await getLocatorWithStableAndVisibleOptions(dest, options);
353
380
  await drag.dragTo(drop, options);
354
381
  }
355
382
 
@@ -359,7 +386,7 @@ export async function dragAndDrop(
359
386
  * @param {DoubleClickOptions} options - The double click options.
360
387
  */
361
388
  export async function doubleClick(input: string | Locator, options?: DoubleClickOptions): Promise<void> {
362
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
389
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
363
390
  await locator.dblclick(options);
364
391
  }
365
392
 
@@ -369,7 +396,7 @@ export async function doubleClick(input: string | Locator, options?: DoubleClick
369
396
  * @param {string} path - The path to save the downloaded file to.
370
397
  */
371
398
  export async function downloadFile(input: string | Locator, path: string, options?: ClickOptions): Promise<void> {
372
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
399
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
373
400
  const downloadPromise = getPage().waitForEvent('download');
374
401
  await click(locator, options);
375
402
  const download = await downloadPromise;
@@ -386,7 +413,7 @@ export async function downloadFile(input: string | Locator, path: string, option
386
413
  * @param {UploadOptions} options - The upload options.
387
414
  */
388
415
  export async function uploadFiles(input: string | Locator, path: UploadValues, options?: UploadOptions): Promise<void> {
389
- const locator = getLocator(input, { ...defaultVisibleOnlyOption, ...options });
416
+ const locator = await getLocatorWithStableAndVisibleOptions(input, options);
390
417
  await locator.setInputFiles(path, options);
391
418
  }
392
419
 
@@ -191,7 +191,6 @@ export async function isElementChecked(input: string | Locator, options?: Timeou
191
191
  */
192
192
  export async function waitForElementToBeStable(input: string | Locator, options?: TimeoutOption): Promise<boolean> {
193
193
  let result = false;
194
- // eslint-disable-next-line playwright/require-top-level-describe
195
194
  await test.step('waitForElementToBeStable', async () => {
196
195
  const locator = getLocator(input);
197
196
  const maxWaitTime = options?.timeout || SMALL_TIMEOUT;
@@ -13,6 +13,7 @@ import {
13
13
  GetByTextOptions,
14
14
  LocatorOptions,
15
15
  } from '../types/optional-parameter-types';
16
+ import { defaultVisibleOnlyOption } from '..';
16
17
 
17
18
  /**
18
19
  * 1. Locators: This section contains functions and definitions related to locators.
@@ -30,6 +31,21 @@ export function getLocator(input: string | Locator, options?: LocatorOptions): L
30
31
  return options?.onlyVisible ? locator.locator('visible=true') : locator;
31
32
  }
32
33
 
34
+ /**
35
+ * Returns a locator pointing to only visible element based on the input provided.
36
+ * By default, it returns locators that are visible. This behavior can be customized
37
+ * via the `options` parameter, allowing for more specific locator configurations.
38
+ *
39
+ * @param input - The selector string or Locator object to identify the element.
40
+ * @param options - Optional. Configuration options for the locator. Use `{ onlyVisible: false }`
41
+ * to include non-visible elements in the locator's search criteria.
42
+ * @returns A `Locator` instance pointing to an element that matches the specified
43
+ * criteria, prioritizing visibility unless overridden by `options`.
44
+ */
45
+ export function getVisibleLocator(input: string | Locator, options?: LocatorOptions): Locator {
46
+ return getLocator(input, { ...defaultVisibleOnlyOption, ...options });
47
+ }
48
+
33
49
  /**
34
50
  * Returns a Locator object with a specific testId. The global testId attribute is set in the playwright.config.ts file with default value as 'data-testid' if not set explicitly, but can be overridden by providing an attributeName.
35
51
  * @param {string | RegExp} testId - The testId to create the Locator from.
@@ -106,9 +122,9 @@ export async function getAllLocators(input: string | Locator, options?: LocatorO
106
122
  * @returns {null | Frame} - The Frame object if found, otherwise null (if 'force' is true).
107
123
  * @throws {Error} - Throws an error if the frame is not found and 'force' is false.
108
124
  */
109
- export function getFrame(frameSelector: FrameOptions, { force = false }: { force?: boolean }): null | Frame {
125
+ export function getFrame(frameSelector: FrameOptions, options = { force: false }): null | Frame {
110
126
  const frame = getPage().frame(frameSelector);
111
- if (force) return frame;
127
+ if (options.force) return frame;
112
128
  if (!frame) {
113
129
  throw new Error(`Frame not found with selector: ${JSON.stringify(frameSelector)}`);
114
130
  }