playwright-ts-automationframework 1.1.24 → 1.1.26

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.
@@ -56,6 +56,7 @@ export declare class Actions extends BasePage {
56
56
  * type(usernameTxtbx);
57
57
  */
58
58
  type(control: WebControl, textTobeEntered: string): Promise<void>;
59
+ typePassword(control: WebControl, textTobeEntered: string): Promise<void>;
59
60
  /**
60
61
  * Press Keyboard event.
61
62
  *
@@ -181,6 +181,28 @@ var Actions = /** @class */ (function (_super) {
181
181
  });
182
182
  });
183
183
  };
184
+ Actions.prototype.typePassword = function (control, textTobeEntered) {
185
+ return __awaiter(this, void 0, void 0, function () {
186
+ return __generator(this, function (_a) {
187
+ switch (_a.label) {
188
+ case 0: return [4 /*yield*/, control.controlLocator.first().fill(textTobeEntered).then(function () {
189
+ if (control.controlDescription.trim().toLowerCase().endsWith('textbox')) {
190
+ (0, logs_core_1.logAction)("Entered '********' in '" + control.controlDescription + "'");
191
+ }
192
+ else {
193
+ (0, logs_core_1.logAction)("Entered '********' in '" + control.controlDescription + "' textbox");
194
+ }
195
+ }, function (error) {
196
+ (0, logs_core_1.logError)("Unable to enter text in '" + control.controlDescription + "' textbox due to reason: " + error);
197
+ throw error;
198
+ })];
199
+ case 1:
200
+ _a.sent();
201
+ return [2 /*return*/];
202
+ }
203
+ });
204
+ });
205
+ };
184
206
  /**
185
207
  * Press Keyboard event.
186
208
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright-ts-automationframework",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",