@playq/core 0.2.77

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.
Files changed (225) hide show
  1. package/README.md +41 -0
  2. package/bin/playq.js +175 -0
  3. package/cucumber.js +10 -0
  4. package/dist/exec/featureFileCache.d.ts +21 -0
  5. package/dist/exec/featureFileCache.js +124 -0
  6. package/dist/exec/featureFilePreProcess.d.ts +12 -0
  7. package/dist/exec/featureFilePreProcess.js +208 -0
  8. package/dist/exec/preLoader.d.ts +1 -0
  9. package/dist/exec/preLoader.js +72 -0
  10. package/dist/exec/preProcessEntry.d.ts +1 -0
  11. package/dist/exec/preProcessEntry.js +83 -0
  12. package/dist/exec/preProcess_old_todelete.d.ts +1 -0
  13. package/dist/exec/preProcess_old_todelete.js +258 -0
  14. package/dist/exec/runner.d.ts +1 -0
  15. package/dist/exec/runner.js +221 -0
  16. package/dist/exec/runner_orchestrator.d.ts +1 -0
  17. package/dist/exec/runner_orchestrator.js +85 -0
  18. package/dist/exec/sgGenerator.d.ts +11 -0
  19. package/dist/exec/sgGenerator.js +310 -0
  20. package/dist/global.d.ts +15 -0
  21. package/dist/global.js +185 -0
  22. package/dist/helper/actions/api/apiRequestActions.d.ts +117 -0
  23. package/dist/helper/actions/api/apiRequestActions.js +374 -0
  24. package/dist/helper/actions/api/apiValidationActions.d.ts +119 -0
  25. package/dist/helper/actions/api/apiValidationActions.js +615 -0
  26. package/dist/helper/actions/apiActions.d.ts +18 -0
  27. package/dist/helper/actions/apiActions.js +34 -0
  28. package/dist/helper/actions/apiStepDefs.d.ts +1 -0
  29. package/dist/helper/actions/apiStepDefs.js +64 -0
  30. package/dist/helper/actions/comm/commonActions.d.ts +58 -0
  31. package/dist/helper/actions/comm/commonActions.js +198 -0
  32. package/dist/helper/actions/comm/utilityActions.d.ts +131 -0
  33. package/dist/helper/actions/comm/utilityActions.js +351 -0
  34. package/dist/helper/actions/commActions.d.ts +18 -0
  35. package/dist/helper/actions/commActions.js +34 -0
  36. package/dist/helper/actions/commStepDefs.d.ts +1 -0
  37. package/dist/helper/actions/commStepDefs.js +57 -0
  38. package/dist/helper/actions/stepGroupStepDefs.d.ts +1 -0
  39. package/dist/helper/actions/stepGroupStepDefs.js +15 -0
  40. package/dist/helper/actions/web/alertActions.d.ts +61 -0
  41. package/dist/helper/actions/web/alertActions.js +224 -0
  42. package/dist/helper/actions/web/cookieActions.d.ts +45 -0
  43. package/dist/helper/actions/web/cookieActions.js +186 -0
  44. package/dist/helper/actions/web/downloadActions.d.ts +40 -0
  45. package/dist/helper/actions/web/downloadActions.js +153 -0
  46. package/dist/helper/actions/web/elementReaderActions.d.ts +95 -0
  47. package/dist/helper/actions/web/elementReaderActions.js +326 -0
  48. package/dist/helper/actions/web/formActions.d.ts +122 -0
  49. package/dist/helper/actions/web/formActions.js +423 -0
  50. package/dist/helper/actions/web/iframeActions.d.ts +23 -0
  51. package/dist/helper/actions/web/iframeActions.js +108 -0
  52. package/dist/helper/actions/web/javascriptActions.d.ts +14 -0
  53. package/dist/helper/actions/web/javascriptActions.js +77 -0
  54. package/dist/helper/actions/web/keyboardActions.d.ts +35 -0
  55. package/dist/helper/actions/web/keyboardActions.js +118 -0
  56. package/dist/helper/actions/web/localStorageActions.d.ts +51 -0
  57. package/dist/helper/actions/web/localStorageActions.js +163 -0
  58. package/dist/helper/actions/web/mouseActions.d.ts +240 -0
  59. package/dist/helper/actions/web/mouseActions.js +609 -0
  60. package/dist/helper/actions/web/reportingActions.d.ts +34 -0
  61. package/dist/helper/actions/web/reportingActions.js +58 -0
  62. package/dist/helper/actions/web/screenshotActions.d.ts +34 -0
  63. package/dist/helper/actions/web/screenshotActions.js +151 -0
  64. package/dist/helper/actions/web/testDataActions.d.ts +21 -0
  65. package/dist/helper/actions/web/testDataActions.js +211 -0
  66. package/dist/helper/actions/web/validationActions.d.ts +547 -0
  67. package/dist/helper/actions/web/validationActions.js +1754 -0
  68. package/dist/helper/actions/web/waitActions.d.ts +191 -0
  69. package/dist/helper/actions/web/waitActions.js +589 -0
  70. package/dist/helper/actions/web/webNavigation.d.ts +104 -0
  71. package/dist/helper/actions/web/webNavigation.js +288 -0
  72. package/dist/helper/actions/webActions.d.ts +32 -0
  73. package/dist/helper/actions/webActions.js +48 -0
  74. package/dist/helper/actions/webStepDefs.d.ts +1 -0
  75. package/dist/helper/actions/webStepDefs.js +455 -0
  76. package/dist/helper/browsers/browserManager.d.ts +1 -0
  77. package/dist/helper/browsers/browserManager.js +56 -0
  78. package/dist/helper/bundle/defaultEntries.d.ts +6 -0
  79. package/dist/helper/bundle/defaultEntries.js +200 -0
  80. package/dist/helper/bundle/env.d.ts +1 -0
  81. package/dist/helper/bundle/env.js +157 -0
  82. package/dist/helper/bundle/vars.d.ts +9 -0
  83. package/dist/helper/bundle/vars.js +375 -0
  84. package/dist/helper/faker/customFaker.d.ts +55 -0
  85. package/dist/helper/faker/customFaker.js +45 -0
  86. package/dist/helper/faker/modules/data/postcodes_valid_sg.json +17 -0
  87. package/dist/helper/faker/modules/dateTime.d.ts +18 -0
  88. package/dist/helper/faker/modules/dateTime.js +106 -0
  89. package/dist/helper/faker/modules/mobile.d.ts +4 -0
  90. package/dist/helper/faker/modules/mobile.js +59 -0
  91. package/dist/helper/faker/modules/nric.d.ts +32 -0
  92. package/dist/helper/faker/modules/nric.js +84 -0
  93. package/dist/helper/faker/modules/passport.d.ts +3 -0
  94. package/dist/helper/faker/modules/passport.js +36 -0
  95. package/dist/helper/faker/modules/person.d.ts +14 -0
  96. package/dist/helper/faker/modules/person.js +73 -0
  97. package/dist/helper/faker/modules/postcode.d.ts +6 -0
  98. package/dist/helper/faker/modules/postcode.js +47 -0
  99. package/dist/helper/fixtures/locAggregate.d.ts +7 -0
  100. package/dist/helper/fixtures/locAggregate.js +94 -0
  101. package/dist/helper/fixtures/logFixture.d.ts +8 -0
  102. package/dist/helper/fixtures/logFixture.js +56 -0
  103. package/dist/helper/fixtures/webFixture.d.ts +19 -0
  104. package/dist/helper/fixtures/webFixture.js +186 -0
  105. package/dist/helper/fixtures/webLocFixture.d.ts +2 -0
  106. package/dist/helper/fixtures/webLocFixture.js +144 -0
  107. package/dist/helper/report/allureStepLogger.d.ts +0 -0
  108. package/dist/helper/report/allureStepLogger.js +25 -0
  109. package/dist/helper/report/customiseReport.d.ts +1 -0
  110. package/dist/helper/report/customiseReport.js +55 -0
  111. package/dist/helper/report/init.d.ts +1 -0
  112. package/dist/helper/report/init.js +14 -0
  113. package/dist/helper/report/report.d.ts +1 -0
  114. package/dist/helper/report/report.js +102 -0
  115. package/dist/helper/util/dataLoader.d.ts +10 -0
  116. package/dist/helper/util/dataLoader.js +73 -0
  117. package/dist/helper/util/logger.d.ts +4 -0
  118. package/dist/helper/util/logger.js +61 -0
  119. package/dist/helper/util/session/sessionUtil.d.ts +26 -0
  120. package/dist/helper/util/session/sessionUtil.js +729 -0
  121. package/dist/helper/util/stepHelpers.d.ts +2 -0
  122. package/dist/helper/util/stepHelpers.js +16 -0
  123. package/dist/helper/util/test-data/dataLoader.d.ts +7 -0
  124. package/dist/helper/util/test-data/dataLoader.js +145 -0
  125. package/dist/helper/util/test-data/dataTest.d.ts +10 -0
  126. package/dist/helper/util/test-data/dataTest.js +216 -0
  127. package/dist/helper/util/totp/totpHelper.d.ts +38 -0
  128. package/dist/helper/util/totp/totpHelper.js +117 -0
  129. package/dist/helper/util/utilities/cryptoUtil.d.ts +2 -0
  130. package/dist/helper/util/utilities/cryptoUtil.js +53 -0
  131. package/dist/helper/util/utilities/schemaGeneratorUtil.d.ts +2 -0
  132. package/dist/helper/util/utilities/schemaGeneratorUtil.js +129 -0
  133. package/dist/helper/util/utils.d.ts +2 -0
  134. package/dist/helper/util/utils.js +22 -0
  135. package/dist/helper/wrapper/PlaywrightWrappers.d.ts +8 -0
  136. package/dist/helper/wrapper/PlaywrightWrappers.js +26 -0
  137. package/dist/helper/wrapper/assert.d.ts +9 -0
  138. package/dist/helper/wrapper/assert.js +23 -0
  139. package/dist/index.d.ts +7 -0
  140. package/dist/index.js +57 -0
  141. package/dist/scripts/get-versions.d.ts +1 -0
  142. package/dist/scripts/get-versions.js +98 -0
  143. package/dist/scripts/posttest.d.ts +1 -0
  144. package/dist/scripts/posttest.js +29 -0
  145. package/dist/scripts/pretest.d.ts +1 -0
  146. package/dist/scripts/pretest.js +57 -0
  147. package/dist/scripts/util.d.ts +1 -0
  148. package/dist/scripts/util.js +376 -0
  149. package/package.json +68 -0
  150. package/src/exec/featureFileCache.ts +80 -0
  151. package/src/exec/featureFilePreProcess.ts +239 -0
  152. package/src/exec/preLoader.ts +72 -0
  153. package/src/exec/preProcessEntry.ts +59 -0
  154. package/src/exec/preProcess_old_todelete.ts +289 -0
  155. package/src/exec/runner.ts +241 -0
  156. package/src/exec/runnerCuke.js +90 -0
  157. package/src/exec/runner_orchestrator.ts +91 -0
  158. package/src/exec/sgGenerator.ts +373 -0
  159. package/src/global.ts +130 -0
  160. package/src/helper/actions/api/apiRequestActions.ts +362 -0
  161. package/src/helper/actions/api/apiValidationActions.ts +594 -0
  162. package/src/helper/actions/apiActions.ts +18 -0
  163. package/src/helper/actions/apiStepDefs.ts +80 -0
  164. package/src/helper/actions/comm/commonActions.ts +165 -0
  165. package/src/helper/actions/comm/utilityActions.ts +344 -0
  166. package/src/helper/actions/commActions.ts +18 -0
  167. package/src/helper/actions/commStepDefs.ts +72 -0
  168. package/src/helper/actions/stepGroupStepDefs.ts +17 -0
  169. package/src/helper/actions/web/alertActions.ts +179 -0
  170. package/src/helper/actions/web/cookieActions.ts +124 -0
  171. package/src/helper/actions/web/downloadActions.ts +129 -0
  172. package/src/helper/actions/web/elementReaderActions.ts +323 -0
  173. package/src/helper/actions/web/formActions.ts +469 -0
  174. package/src/helper/actions/web/iframeActions.ts +67 -0
  175. package/src/helper/actions/web/javascriptActions.ts +38 -0
  176. package/src/helper/actions/web/keyboardActions.ts +101 -0
  177. package/src/helper/actions/web/localStorageActions.ts +109 -0
  178. package/src/helper/actions/web/mouseActions.ts +864 -0
  179. package/src/helper/actions/web/reportingActions.ts +53 -0
  180. package/src/helper/actions/web/screenshotActions.ts +124 -0
  181. package/src/helper/actions/web/testDataActions.ts +162 -0
  182. package/src/helper/actions/web/validationActions.ts +2287 -0
  183. package/src/helper/actions/web/waitActions.ts +757 -0
  184. package/src/helper/actions/web/webNavigation.ts +313 -0
  185. package/src/helper/actions/webActions.ts +33 -0
  186. package/src/helper/actions/webStepDefs.ts +505 -0
  187. package/src/helper/browsers/browserManager.ts +23 -0
  188. package/src/helper/bundle/defaultEntries.ts +208 -0
  189. package/src/helper/bundle/env.ts +119 -0
  190. package/src/helper/bundle/vars.ts +368 -0
  191. package/src/helper/faker/customFaker.ts +107 -0
  192. package/src/helper/faker/modules/data/postcodes_valid_sg.json +17 -0
  193. package/src/helper/faker/modules/dateTime.ts +121 -0
  194. package/src/helper/faker/modules/mobile.ts +58 -0
  195. package/src/helper/faker/modules/nric.ts +109 -0
  196. package/src/helper/faker/modules/passport.ts +34 -0
  197. package/src/helper/faker/modules/person.ts +93 -0
  198. package/src/helper/faker/modules/postcode.ts +57 -0
  199. package/src/helper/fixtures/locAggregate.ts +61 -0
  200. package/src/helper/fixtures/logFixture.ts +57 -0
  201. package/src/helper/fixtures/webFixture.ts +206 -0
  202. package/src/helper/fixtures/webLocFixture.ts +143 -0
  203. package/src/helper/report/allureStepLogger.ts +26 -0
  204. package/src/helper/report/customiseReport.ts +61 -0
  205. package/src/helper/report/init.ts +18 -0
  206. package/src/helper/report/report.ts +72 -0
  207. package/src/helper/util/dataLoader.ts +42 -0
  208. package/src/helper/util/logger.ts +32 -0
  209. package/src/helper/util/session/sessionUtil.ts +839 -0
  210. package/src/helper/util/stepHelpers.ts +14 -0
  211. package/src/helper/util/test-data/dataLoader.ts +108 -0
  212. package/src/helper/util/test-data/dataTest.ts +191 -0
  213. package/src/helper/util/test-data/registerUser.json +7 -0
  214. package/src/helper/util/totp/totpHelper.ts +102 -0
  215. package/src/helper/util/utilities/cryptoUtil.ts +53 -0
  216. package/src/helper/util/utilities/schemaGeneratorUtil.ts +143 -0
  217. package/src/helper/util/utils.ts +28 -0
  218. package/src/helper/wrapper/PlaywrightWrappers.ts +28 -0
  219. package/src/helper/wrapper/assert.ts +25 -0
  220. package/src/index.ts +17 -0
  221. package/src/scripts/get-versions.ts +68 -0
  222. package/src/scripts/posttest.ts +32 -0
  223. package/src/scripts/pretest.ts +48 -0
  224. package/src/scripts/util.ts +406 -0
  225. package/tsconfig.json +30 -0
@@ -0,0 +1,547 @@
1
+ import { Page, Locator } from "@playwright/test";
2
+ export declare function see(page: Page, text: string, options?: string | Record<string, any>): Promise<void>;
3
+ export declare function dontSee(page: Page, text: string, options?: string | Record<string, any>): Promise<void>;
4
+ export declare function count(page: Page, field: string | Locator, options?: string | Record<string, any>): Promise<number>;
5
+ /**
6
+ * Web: See Page Title -text: {param} -options: {param}
7
+ *
8
+ * Verifies the page title matches the expected text.
9
+ * Supports exact and partial match, case sensitivity, and screenshot capture.
10
+ *
11
+ * @param page Playwright Page instance
12
+ * @param expectedTitle The expected page title to match (e.g., "Your store").
13
+ * @param options Optional JSON string or object:
14
+ * - partialMatch: [boolean] Perform partial match on title (default: false)
15
+ * - ignoreCase: [boolean] Case-insensitive comparison (default: false)
16
+ * - assert: [boolean] If false, logs failure but does not throw (default: true)
17
+ * - screenshot: [boolean] Capture a screenshot (default: true)
18
+ * - screenshotText: [string] Description for screenshot
19
+ * - screenshotFullPage: [boolean] Full page screenshot (default: true)
20
+ *
21
+ * @example
22
+ * Web: See Page Title -text: "Your store" -options: "{partialMatch: true, ignoreCase: false, assert: true}"
23
+ */
24
+ export declare function seePageTitle(page: Page, expectedTitle: string, options?: string | Record<string, any>): Promise<void>;
25
+ /**
26
+ * Web: Verify page title -text: {param} -options: {param}
27
+ *
28
+ * Verifies the page title matches the expected text.
29
+ *
30
+ * @param expectedTitle - The expected page title to match (e.g., "Your store").
31
+ * @param options - Optional JSON string or object, supporting fields:
32
+ * - partial_check: [boolean] Perform partial match (default: false).
33
+ * - ignoreCase: [boolean] Case-sensitive match (default: true).
34
+ * - assert: [boolean] If false, continues the test even if the verification fails. Default: true.
35
+ * - screenshot: [boolean] Capture screenshot after verification (default: true).
36
+ * - screenshotText: [string] Description for screenshot attachment.
37
+ * - screenshotFullPage: [boolean] Full page screenshot (default: true).
38
+ *
39
+ * Example usage:
40
+ * * Web: Verify page title -text: "Your store" -options: "{partial_check: true, ignoreCase: false, assert: true}"
41
+ */
42
+ export declare function verifyPageTitle(page: Page, expectedTitle: string, options?: string | Record<string, any>): Promise<void>;
43
+ /**
44
+ * Web: Verify header text -field: {param} -options: {param}
45
+ *
46
+ * Verifies that a header element's text (e.g., h1, h2, h3) matches the expected text. Supports partial or exact match, case sensitivity, and optional screenshot capture. The field parameter is the expected text, while pattern refines element selection if needed.
47
+ *
48
+ * @param field - The expected header text to match (e.g., "Welcome", "Dashboard").
49
+ * @param options - Optional JSON string or object:
50
+ * - actionTimeout: [number] Optional Action timeout in milliseconds for waiting. Default: Configured timeout.
51
+ * - navigationTimeout: [number] Optional Navigation timeout in milliseconds for waiting. Default: Configured timeout.
52
+ * - partialMatch: [boolean] Perform a partial match instead of an exact match. Default: false.
53
+ * - pattern: [string] Override the default pattern from config for element resolution. Default: Configured pattern in config.
54
+ * - ignoreCase: [boolean] Perform a case-sensitive match. Default: false.
55
+ * - assert: [boolean] If false, continues the test even if the verification fails. Default: true.
56
+ * - locator: [string] Optional locator to refine element search. Default: "". Eg:locator: locator: "xpath=(//h3[@class='module-title'])[1]"
57
+ * - headerType: [string] Specify a header level (e.g., "h1", "h2", "h3"). Default: Checks all headers from h1 to h4.
58
+ * - screenshot: [boolean] Capture a screenshot during verification. Default: true.
59
+ * - screenshotText: [string] Text description for the screenshot. Default: "".
60
+ * - screenshotFullPage: [boolean] Capture a full page screenshot. Default: true.
61
+ *
62
+ * @example
63
+ * Web: Verify header text -field: "Your Account Has Been Created!" -options: "{partialMatch: true, screenshot: true, screenshotText: 'After account creation', locator: "xpath=(//h3[@class='module-title'])[1]" }"
64
+ */
65
+ export declare function verifyHeaderText(page: Page, expectedText: string, options?: string | Record<string, any>): Promise<void>;
66
+ /**
67
+ * Web: Verify text on page -text: {param} -options: {param}
68
+ *
69
+ * Verifies that the provided text is present somewhere in the page.
70
+ *
71
+ * @param text - The expected text to search for on the page.
72
+ * @param options - Optional JSON string or object:
73
+ * - actionTimeout: [number] Optional timeout in milliseconds for waiting. Default: Configured timeout.
74
+ * - partialMatch: [boolean] Perform a partial match instead of an exact match. Default: false.
75
+ * - ignoreCase: [boolean] Perform a case-sensitive match. Default: false.
76
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
77
+ * - screenshot: [boolean] Capture a screenshot. Default: true.
78
+ * - screenshotText: [string] Description for the screenshot.
79
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
80
+ *
81
+ * @example
82
+ * Web: Verify text on page -text: "Welcome back!" -options: "{partialMatch: true, screenshot: true, screenshotText: 'Verifying greeting'}"
83
+ */
84
+ export declare function verifyTextOnPage(page: Page, text: string, options?: string | Record<string, any>): Promise<void>;
85
+ /**
86
+ * Web: Verify text not empty at location -field: {param} -options: {param}
87
+ *
88
+ * Verifies that the text content of an element is not empty.
89
+ *
90
+ * @param page - Playwright Page instance
91
+ * @param field - The label, id, name, or selector of the element to verify
92
+ * @param options - Optional JSON string or object:
93
+ * - actionTimeout: [number] Optional timeout in milliseconds. Default: Configured timeout.
94
+ * - pattern: [string] Optional pattern to refine element search.
95
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
96
+ * - screenshot: [boolean] Capture screenshot. Default: true.
97
+ * - screenshotText: [string] Screenshot description.
98
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
99
+ */
100
+ export declare function verifyTextNotEmptyAtLocation(page: Page, field: string | Locator, options?: string | Record<string, any>): Promise<void>;
101
+ /**
102
+ * Web: Verify text at location -field: {param} -value: {param} -options: {param}
103
+ *
104
+ * Verifies that the text content of an element matches the expected value.
105
+ *
106
+ * @param field - The label, id, name, or selector of the element to verify.
107
+ * @param expectedText - The expected text content.
108
+ * @param options - Optional JSON string or object:
109
+ * - actionTimeout: [number] Optional timeout in milliseconds. Default: Configured timeout.
110
+ * - partialMatch: [boolean] If true, performs substring match. Default: false.
111
+ * - pattern: [string] Optional pattern to refine element search.
112
+ * - ignoreCase: [boolean] Whether the match is case-sensitive. Default: true.
113
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
114
+ * - screenshot: [boolean] Capture screenshot. Default: true.
115
+ * - screenshotText: [string] Screenshot description.
116
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
117
+ */
118
+ export declare function verifyTextAtLocation(page: Page, field: string | Locator, expectedText: string, options?: string | Record<string, any>): Promise<void>;
119
+ /**
120
+ * Web: Verify input field is blank -field: {param} -options: {param}
121
+ *
122
+ * Verifies that an input field is blank (empty value).
123
+ *
124
+ * @param page - Playwright Page instance
125
+ * @param field - The label, id, name, selector, or Locator for the input field
126
+ * @param options - Optional JSON string or object:
127
+ * - actionTimeout: [number] Optional timeout in milliseconds. Default: Configured timeout.
128
+ * - pattern: [string] Optional pattern to refine element search.
129
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
130
+ * - screenshot: [boolean] Capture screenshot. Default: true.
131
+ * - screenshotText: [string] Screenshot description.
132
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
133
+ */
134
+ export declare function verifyInputFieldIsBlank(page: Page, field: string | Locator, options?: string | Record<string, any>): Promise<void>;
135
+ /**
136
+ * Web: Verify input field is present -field: {param} -options: {param}
137
+ *
138
+ * Verifies that an input field is present on the page, identified by label, text, id, name, or pattern.
139
+ *
140
+ * @param field - The label, text, id, name, or selector of the input field to verify (e.g., "Email", "Password").
141
+ * @param options - Optional JSON string or object:
142
+ * - actionTimeout: [number] Optional timeout in milliseconds for waiting. Default: Configured timeout.
143
+ * - pattern: [string] Optional pattern to refine element search. Default: Configured pattern.
144
+ * - assert: [boolean] If false, continues the test even if the verification fails. Default: true.
145
+ * - screenshot: [boolean] Capture a screenshot during verification. Default: true.
146
+ * - screenshotText: [string] Text description for the screenshot. Default: "".
147
+ * - screenshotFullPage: [boolean] Capture a full page screenshot. Default: true.
148
+ *
149
+ * @example
150
+ * Web: Verify input field is present -field: "Email" -options: "{screenshot: true, screenshotText: 'Verifying Email input field'}"
151
+ */
152
+ export declare function verifyInputFieldPresent(page: Page, field: string | Locator, options?: string | Record<string, any>): Promise<void>;
153
+ /**
154
+ * Web: Verify input field value -field: {param} -value: {param} -options: {param}
155
+ *
156
+ * Verifies that the value of an input field matches the expected value.
157
+ *
158
+ * @param field - The label, id, name, or selector of the input field to verify.
159
+ * @param expectedValue - The expected value of the input field.
160
+ * @param options - Optional JSON string or object:
161
+ * - actionTimeout: [number] Optional timeout in milliseconds. Default: Configured timeout.
162
+ * - partialMatch: [boolean] If true, performs substring match. Default: false.
163
+ * - pattern: [string] Optional pattern to refine element search.
164
+ * - ignoreCase: [boolean] Whether the match is case-sensitive. Default: true.
165
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
166
+ * - screenshot: [boolean] Capture screenshot. Default: true.
167
+ * - screenshotText: [string] Screenshot description.
168
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
169
+ */
170
+ export declare function verifyInputFieldValue(page: Page, field: string | Locator, expectedValue: string, options?: string | Record<string, any>): Promise<void>;
171
+ /**
172
+ * Web: Verify locked input field value -field: {param} -value: {param} -options: {param}
173
+ *
174
+ * Verifies that the value of an locked input field matches the expected value.
175
+ *
176
+ * @param field - The label, id, name, or selector of the input field to verify.
177
+ * @param expectedValue - The expected value of the input field.
178
+ * @param options - Optional JSON string or object:
179
+ * - actionTimeout: [number] Optional timeout in milliseconds. Default: Configured timeout.
180
+ * - partialMatch: [boolean] If true, performs substring match. Default: false.
181
+ * - pattern: [string] Optional pattern to refine element search.
182
+ * - ignoreCase: [boolean] Whether the match is case-sensitive. Default: true.
183
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
184
+ * - screenshot: [boolean] Capture screenshot. Default: true.
185
+ * - screenshotText: [string] Screenshot description.
186
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
187
+ */
188
+ export declare function verifyLockedInputFieldValue(page: Page, field: string | Locator, expectedValue: string, options?: string | Record<string, any>): Promise<void>;
189
+ /**
190
+ * Web: Verify Tab field Present -field: {param} -options: {param}
191
+ *
192
+ * Verifies that a "Tab" field is present on the page, identified by label, text, id, name, or pattern.
193
+ *
194
+ * @param field - The label, text, id, name, or selector of the tab to verify (e.g., "Overview", "Settings").
195
+ * @param options - Optional JSON string or object:
196
+ * - actionTimeout: [number] Optional timeout in milliseconds for waiting. Default: from [config] or 30000.
197
+ * - pattern: [string] Optional pattern to refine element search.
198
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
199
+ * - isPresent: [boolean] Check Tab is present on the page. Default: true.
200
+ * - isEnabled: [boolean] Check if Tab is enabled. Default: false.
201
+ * - isSelected: [boolean] Check if Tab is selected. Default: false.
202
+ * - isNotSelected: [boolean] Check if Tab is not selected. Default: false.
203
+ * - screenshot: [boolean] Capture a screenshot. Default: true.
204
+ * - screenshotText: [string] Description for the screenshot.
205
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
206
+ */
207
+ export declare function verifyTabField(page: Page, field: string | Locator, options?: string | Record<string, any>): Promise<void>;
208
+ /**
209
+ * Web: Verify Toast Text Contains -text: {param} -options: {param}
210
+ *
211
+ * Verifies that a toast (notification) element appears on the page and contains the expected text.
212
+ * Throws an error (or logs a warning if `assert: false`) if the text is not found.
213
+ *
214
+ * @param page - Playwright Page instance.
215
+ * @param text - The expected substring to match within the toast notification (e.g., "Saved successfully").
216
+ * @param options - Optional JSON string or object:
217
+ * - actionTimeout: [number] Timeout in milliseconds to wait for toast visibility. Default: 30000.
218
+ * - pattern: [string] Optional pattern to refine toast element search (e.g., class name or attribute).
219
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
220
+ * - screenshot: [boolean] Capture a screenshot after verification. Default: true.
221
+ * - screenshotText: [string] Description for screenshot attachment.
222
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
223
+ *
224
+ * @example
225
+ * Web: Verify Toast Text Contains -text: "Saved successfully"
226
+ */
227
+ export declare function verifyToastTextContains(page: Page, text: string, options?: any): Promise<void>;
228
+ /**
229
+ * Web: Verify text to disappear at location -field: {param} -text: {param} -options: {param}
230
+ *
231
+ * Verifies that the specified text disappears from the given field/locator within a timeout.
232
+ *
233
+ * @param page - Playwright Page instance
234
+ * @param field - The selector or Locator where the text should disappear
235
+ * @param textToDisappear - The text to wait for disappearance
236
+ * @param options - Optional string or object:
237
+ * - actionTimeout: [number] Timeout in ms (default: 30000)
238
+ * - partialMatch: [boolean] If true, waits for substring match (default: false)
239
+ * - ignoreCase: [boolean] If true, match is case-insensitive (default: true)
240
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
241
+ * - screenshot: [boolean] Capture screenshot after waiting (default: true)
242
+ * - screenshotText: [string] Description for screenshot
243
+ * - screenshotFullPage: [boolean] Full page screenshot (default: true)
244
+ *
245
+ * @example
246
+ * await verifyTextToDisappearAtLocation(page, 'h1', 'Loading...', { actionTimeout: 10000, partialMatch: true });
247
+ */
248
+ export declare function verifyTextToDisappearAtLocation(page: Page, field: string | Locator, textToDisappear: string, options?: string | Record<string, any>): Promise<void>;
249
+ /**
250
+ * Web: Verify field is locked -field: {param} -options: {param}
251
+ * Verifies that the specified field on the page is locked (read-only).
252
+ * Designed for use in Cucumber step definitions.
253
+ *
254
+ * @param page - Playwright Page instance.
255
+ * @param field - The label, text, id, name, or selector of the field.
256
+ * @param options - Optional settings for the verification action. Can be a JSON string or an object:
257
+ * - screenshot: [boolean] Capture a screenshot. Default: true.
258
+ * - screenshotText: [string] Description for the screenshot.
259
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
260
+ *
261
+ */
262
+ export declare function verifyFieldIsLocked(page: Page, field: string | Locator, options?: string | Record<string, any>): Promise<void>;
263
+ /**
264
+ * Web: Verify field is mandatory -field: {param} -options: {param}
265
+ * Verifies that the specified field on the page is locked (read-only).
266
+ * Designed for use in Cucumber step definitions.
267
+ *
268
+ * @param page - Playwright Page instance.
269
+ * @param field - The label, text, id, name, or selector of the field.
270
+ * @param options - Optional settings for the verification action. Can be a JSON string or an object:
271
+ * - screenshot: [boolean] Capture a screenshot. Default: true.
272
+ * - screenshotText: [string] Description for the screenshot.
273
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
274
+ *
275
+ */
276
+ export declare function verifyFieldIsMandatory(page: Page, field: string | Locator, options?: string | Record<string, any>): Promise<void>;
277
+ /**
278
+ * Web: Verify field is secured -field: {param} -options: {param}
279
+ * Verifies that the specified field on the page is secured.
280
+ * Designed for use in Cucumber step definitions.
281
+ *
282
+ * @param page - Playwright Page instance.
283
+ * @param field - The label, text, id, name, or selector of the field.
284
+ * @param options - Optional settings for the verification action. Can be a JSON string or an object:
285
+ * - screenshot: [boolean] Capture a screenshot. Default: true.
286
+ * - screenshotText: [string] Description for the screenshot.
287
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
288
+ *
289
+ */
290
+ export declare function verifyFieldIsSecured(page: Page, field: string | Locator, options?: string | Record<string, any>): Promise<void>;
291
+ /**
292
+ * Web: Verify select field value -field: {param} -value: {param} -options: {param}
293
+ *
294
+ * Verifies that the value of a select field matches the expected value.
295
+ *
296
+ * @param field - The label, id, name, or selector of the select field to verify.
297
+ * @param expectedValue - The expected value of the select field.
298
+ * @param options - Optional JSON string or object:
299
+ * - actionTimeout: [number] Optional timeout in milliseconds. Default: Configured timeout.
300
+ * - partialMatch: [boolean] If true, performs substring match. Default: false.
301
+ * - pattern: [string] Optional pattern to refine element search.
302
+ * - ignoreCase: [boolean] Whether the match is case-sensitive. Default: true.
303
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
304
+ * - screenshot: [boolean] Capture screenshot. Default: true.
305
+ * - screenshotText: [string] Screenshot description.
306
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
307
+ */
308
+ export declare function verifySelectDropdownValue(page: Page, field: string | Locator, expectedValue: string, options?: string | Record<string, any>): Promise<void>;
309
+ /**
310
+ * Web: Verify select list does not have given value -field: {param} -value: {param} -options: {param}
311
+ *
312
+ * Verifies that a select dropdown does NOT contain the specified value in its options list.
313
+ *
314
+ * @param page - Playwright Page instance
315
+ * @param field - The label, id, name, or selector of the select field to verify.
316
+ * @param excludedValue - The value that should NOT be present in the dropdown options.
317
+ * @param options - Optional JSON string or object:
318
+ * - actionTimeout: [number] Optional timeout in milliseconds. Default: Configured timeout.
319
+ * - pattern: [string] Optional pattern to refine element search.
320
+ * - ignoreCase: [boolean] Whether the match is case-sensitive. Default: true.
321
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
322
+ * - screenshot: [boolean] Capture screenshot. Default: true.
323
+ * - screenshotText: [string] Screenshot description.
324
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
325
+ *
326
+ * @example
327
+ * Web: Verify select list does not have given value -field: "Country" -value: "Antarctica" -options: "{screenshot: true, screenshotText: 'Verified Antarctica not in list'}"
328
+ */
329
+ export declare function verifySelectListNotHaveGivenValue(page: Page, field: string | Locator, excludedValue: string, options?: string | Record<string, any>): Promise<void>;
330
+ /**
331
+ * Web: Verify element is present/visible -field: {param} -options: {param}
332
+ *
333
+ * Generic presence/visibility check for any element type (button, input, dropdown, text, etc.)
334
+ * using PlayQ locator system and fieldType, with support for exact/partial match.
335
+ *
336
+ * @param page - Playwright Page instance
337
+ * @param field - The label, text, id, name, or selector of the element to verify
338
+ * @param options - Optional JSON string or object:
339
+ * - fieldType: [string] Type of element (e.g., "button", "input", "dropdown", "text", etc.)
340
+ * - actionTimeout: [number] Optional timeout in milliseconds. Default: Configured timeout.
341
+ * - pattern: [string] Optional pattern to refine element search.
342
+ * - partialMatch: [boolean] If true, allows substring match. Default: false (exact match).
343
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
344
+ * - screenshot: [boolean] Capture screenshot. Default: true.
345
+ * - screenshotText: [string] Screenshot description.
346
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
347
+ * - unique: [boolean] If true, require exactly one match. Default: false.
348
+ *
349
+ * @example
350
+ * await web.verifyElementPresent(page, "My Button", { fieldType: "button" });
351
+ * await web.verifyElementPresent(page, "Search", { fieldType: "input", partialMatch: true });
352
+ */
353
+ export declare function verifyElementPresent(page: Page, field: string | Locator, options?: string | Record<string, any>): Promise<void>;
354
+ /**
355
+ * Web: Verify element is NOT present/visible -field: {param} -options: {param}
356
+ *
357
+ * Generic absence/invisibility check for any element type (button, input, dropdown, text, etc.)
358
+ * using PlayQ locator system and fieldType, with support for exact/partial match.
359
+ *
360
+ * @param page - Playwright Page instance
361
+ * @param field - The label, text, id, name, or selector of the element to verify
362
+ * @param options - Optional JSON string or object:
363
+ * - fieldType: [string] Type of element (e.g., "button", "input", "dropdown", "text", etc.)
364
+ * - actionTimeout: [number] Optional timeout in milliseconds. Default: Configured timeout.
365
+ * - pattern: [string] Optional pattern to refine element search.
366
+ * - partialMatch: [boolean] If true, allows substring match. Default: false (exact match).
367
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
368
+ * - screenshot: [boolean] Capture screenshot. Default: true.
369
+ * - screenshotText: [string] Screenshot description.
370
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
371
+ * - unique: [boolean] If true, require exactly one match. Default: false.
372
+ *
373
+ * @example
374
+ * await web.verifyElementNotPresent(page, "My Button", { fieldType: "button" });
375
+ * await web.verifyElementNotPresent(page, "Search", { fieldType: "input", partialMatch: true });
376
+ */
377
+ export declare function verifyElementNotPresent(page: Page, field: string | Locator, options?: string | Record<string, any>): Promise<void>;
378
+ /**
379
+ * Web: Verify element is enabled -field: {param} -options: {param}
380
+ *
381
+ * Verifies that the specified element on the page is enabled (not disabled).
382
+ *
383
+ * @param page - Playwright Page instance.
384
+ * @param field - The label, text, id, name, or selector of the element to verify.
385
+ * @param options - Optional settings for the verification action. Can be a JSON string or an object:
386
+ * - fieldType: [string] Type of element (e.g., "button", "input", "dropdown", etc.)
387
+ * - actionTimeout: [number] Timeout in milliseconds to wait for page load. Default: Configured timeout.
388
+ * - pattern: [string] Optional pattern to refine element search.
389
+ * - partialMatch: [boolean] If true, allows substring match. Default: false (exact match).
390
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
391
+ * - screenshot: [boolean] Capture a screenshot. Default: true.
392
+ * - screenshotText: [string] Description for the screenshot.
393
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
394
+ *
395
+ * @example
396
+ * await web.verifyElementEnabled(page, "Submit Button", { fieldType: "button" });
397
+ *
398
+ */
399
+ export declare function verifyElementEnabled(page: Page, field: string | Locator, options?: string | Record<string, any>): Promise<void>;
400
+ /**
401
+ * Web: Verify element is disabled -field: {param} -options: {param}
402
+ *
403
+ * Verifies that the specified element on the page is disabled (not enabled).
404
+ *
405
+ * @param page - Playwright Page instance.
406
+ * @param field - The label, text, id, name, or selector of the element to verify.
407
+ * @param options - Optional settings for the verification action. Can be a JSON string or an object:
408
+ * - fieldType: [string] Type of element (e.g., "button", "input", "dropdown", etc.)
409
+ * - actionTimeout: [number] Timeout in milliseconds to wait for page load. Default: Configured timeout.
410
+ * - pattern: [string] Optional pattern to refine element search.
411
+ * - partialMatch: [boolean] If true, allows substring match. Default: false (exact match).
412
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
413
+ * - screenshot: [boolean] Capture a screenshot. Default: true.
414
+ * - screenshotText: [string] Description for the screenshot.
415
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
416
+ *
417
+ * @example
418
+ * await web.verifyElementDisabled(page, "Submit Button", { fieldType: "button" });
419
+ *
420
+ */
421
+ export declare function verifyElementDisabled(page: Page, field: string | Locator, options?: string | Record<string, any>): Promise<void>;
422
+ /**
423
+ * Web: Verify element is selected -field: {param} -options: {param}
424
+ *
425
+ * Verifies that the specified element on the page is selected (e.g., checkbox, radio button, option).
426
+ *
427
+ * @param page - Playwright Page instance.
428
+ * @param field - The label, text, id, name, or selector of the element to verify.
429
+ * @param options - Optional settings for the verification action. Can be a JSON string or an object:
430
+ * - fieldType: [string] Type of element (e.g., "checkbox", "radio", "option", etc.)
431
+ * - actionTimeout: [number] Timeout in milliseconds to wait for page load. Default: Configured timeout.
432
+ * - pattern: [string] Optional pattern to refine element search.
433
+ * - partialMatch: [boolean] If true, allows substring match. Default: false (exact match).
434
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
435
+ * - screenshot: [boolean] Capture a screenshot. Default: true.
436
+ * - screenshotText: [string] Description for the screenshot.
437
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
438
+ *
439
+ *
440
+ * @example
441
+ * await web.verifyElementSelected(page, "Accept Terms", { fieldType: "checkbox" });
442
+ *
443
+ */
444
+ export declare function verifyElementSelected(page: Page, field: string | Locator, options?: string | Record<string, any>): Promise<void>;
445
+ /**
446
+ *
447
+ * Web: Verify element has attribute -field: {param} -attribute: {param} -value: {param} -options: {param}
448
+ *
449
+ * Verifies that the specified element on the page has the given attribute with the expected value.
450
+ *
451
+ * @param page - Playwright Page instance.
452
+ * @param field - The label, text, id, name, or selector of the element to verify.
453
+ * @param attribute - The attribute name to check (e.g., "href", "src", "alt", etc.).
454
+ * @param expectedValue - The expected value of the attribute.
455
+ * @param options - Optional settings for the verification action. Can be a JSON string or an object:
456
+ * - fieldType: [string] Type of element (e.g., "button", "input", "dropdown", etc.)
457
+ * - actionTimeout: [number] Timeout in milliseconds to wait for page load. Default: Configured timeout.
458
+ * - pattern: [string] Optional pattern to refine element search.
459
+ * - partialMatch: [boolean] If true, allows substring match. Default: false (exact match).
460
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
461
+ * - screenshot: [boolean] Capture a screenshot. Default: true.
462
+ * - screenshotText: [string] Description for the screenshot.
463
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
464
+ *
465
+ * @example
466
+ * await web.verifyElementHasAttribute(page, "My Link", "href", "https://example.com", { fieldType: "link" });
467
+ *
468
+ */
469
+ export declare function verifyElementHasAttribute(page: Page, field: string | Locator, attribute: string, expectedValue: string, options?: string | Record<string, any>): Promise<void>;
470
+ /**
471
+ * Web: Verify element count -field: {param} -expectedCount: {param} -options: {param}
472
+ *
473
+ * Verifies that the count of specified elements on the page matches the expected count.
474
+ *
475
+ * @param page - Playwright Page instance.
476
+ * @param field - The label, text, id, name, or selector of the element to verify.
477
+ * @param expectedCount - The expected number of elements to be present.
478
+ * @param options - Optional settings for the verification action. Can be a JSON string or an object:
479
+ * - fieldType: [string] Type of element (e.g., "button", "input", "dropdown", etc.)
480
+ * - actionTimeout: [number] Timeout in milliseconds to wait for page load. Default: Configured timeout.
481
+ * - pattern: [string] Optional pattern to refine element search.
482
+ * - partialMatch: [boolean] If true, allows substring match. Default: false (exact match).
483
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
484
+ * - screenshot: [boolean] Capture a screenshot. Default: true.
485
+ * - screenshotText: [string] Description for the screenshot.
486
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
487
+ *
488
+ *
489
+ * @example
490
+ * await web.verifyElementCount(page, "Item", 5, { fieldType: "text" });
491
+ *
492
+ *
493
+ */
494
+ export declare function verifyElementCount(page: Page, field: string | Locator, expectedCount: number, options?: string | Record<string, any>): Promise<void>;
495
+ /**
496
+ *
497
+
498
+ /**
499
+ * Web: Verify element order -field: {param} -expectedOrder: {param} -options: {param}
500
+ *
501
+ * Verifies that the order of elements of a specified type on the page matches the expected order.
502
+ *
503
+ * @param page - Playwright Page instance.
504
+ * @param field - The locator, label, text, id, name, or selector of the elements to verify (string or Locator).
505
+ * @param expectedOrder - An array of expected element texts in the correct order.
506
+ * @param options - Optional settings for the verification action. Can be a JSON string or an object:
507
+ * - fieldType: [string] The type of elements to verify (e.g., "text", "button", "item", etc.).
508
+ * - actionTimeout: [number] Timeout in milliseconds to wait for page load. Default: Configured timeout.
509
+ * - pattern: [string] Optional pattern to refine element search.
510
+ * - partialMatch: [boolean] If true, allows substring match. Default: false (exact match).
511
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
512
+ * - screenshot: [boolean] Capture a screenshot. Default: true.
513
+ * - screenshotText: [string] Description for the screenshot.
514
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
515
+ *
516
+ * @example
517
+ * // Using a string field (label or logical type)
518
+ * await web.verifyElementOrder(page, "Phase", ["Draft", "Review", "Approved"], { fieldType: "phase", partialMatch: false });
519
+ *
520
+ * // Using a Playwright Locator (e.g., all visible rows in a table)
521
+ * const rows = page.locator('.my-table-row');
522
+ * await web.verifyElementOrder(page, rows, ["Row 1", "Row 2", "Row 3"]);
523
+ */
524
+ export declare function verifyElementOrder(page: Page, field: string | Locator, expectedOrder: string[], options?: string | Record<string, any>): Promise<void>;
525
+ /**
526
+ * Web: Verify element is in viewport -field: {param} -options: {param}
527
+ *
528
+ * Verifies that the specified element on the page is within the visible viewport.
529
+ *
530
+ * @param page - Playwright Page instance.
531
+ * @param field - The label, text, id, name, or selector of the element to verify.
532
+ * @param options - Optional settings for the verification action. Can be a JSON string or an object:
533
+ * - fieldType: [string] Type of element (e.g., "button", "input", "dropdown", etc.)
534
+ * - actionTimeout: [number] Timeout in milliseconds to wait for page load. Default: Configured timeout.
535
+ * - pattern: [string] Optional pattern to refine element search.
536
+ * - partialMatch: [boolean] If true, allows substring match. Default: false (exact match).
537
+ * - assert: [boolean] If false, logs the failure but does not throw. Default: true.
538
+ * - screenshot: [boolean] Capture a screenshot. Default: true.
539
+ * - screenshotText: [string] Description for the screenshot.
540
+ * - screenshotFullPage: [boolean] Capture full page screenshot. Default: true.
541
+ *
542
+ * @example
543
+ * await web.verifyElementInViewport(page, "Submit Button", { fieldType: "button" });
544
+ *
545
+ *
546
+ */
547
+ export declare function verifyElementInViewport(page: Page, field: string | Locator, options?: string | Record<string, any>): Promise<void>;