playwright-ts-automationframework 1.1.9 → 1.1.12

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.
@@ -18,7 +18,7 @@ export declare class Actions extends BasePage {
18
18
  *
19
19
  * click(loginBtn);
20
20
  */
21
- click(control: WebControl): Promise<void>;
21
+ click(control: WebControl, isforceful?: boolean): Promise<void>;
22
22
  /**
23
23
  * Mouse hover on an element.
24
24
  *
@@ -74,11 +74,12 @@ var Actions = /** @class */ (function (_super) {
74
74
  *
75
75
  * click(loginBtn);
76
76
  */
77
- Actions.prototype.click = function (control) {
78
- return __awaiter(this, void 0, void 0, function () {
77
+ Actions.prototype.click = function (control_1) {
78
+ return __awaiter(this, arguments, void 0, function (control, isforceful) {
79
+ if (isforceful === void 0) { isforceful = false; }
79
80
  return __generator(this, function (_a) {
80
81
  switch (_a.label) {
81
- case 0: return [4 /*yield*/, control.controlLocator.click().then(function () {
82
+ case 0: return [4 /*yield*/, control.controlLocator.click({ force: isforceful }).then(function () {
82
83
  (0, logs_core_1.logAction)("Clicked on '" + control.controlDescription + "'");
83
84
  }, function (error) {
84
85
  (0, logs_core_1.errorLog)("Unable to click on '" + control.controlDescription + "'");
@@ -98,7 +98,7 @@ var Assertion = /** @class */ (function (_super) {
98
98
  Assertion.prototype.verifyIsContains = function (actual, expected) {
99
99
  try {
100
100
  var verificationResult = actual.trim().includes(expected.trim()) ? "PASSED" : "Failed";
101
- (0, logs_core_1.logVerification)("VERIFICATION: ".concat(verificationResult, ". Actual: '").concat(actual, "' contains Expected: '").concat(expected.trim(), "'"));
101
+ (0, logs_core_1.logVerification)("VERIFICATION: ".concat(verificationResult, ". Actual: '").concat(actual, "' contains Expected: '").concat(expected.trim(), "'"));
102
102
  (0, test_1.expect)(actual.trim()).toContain(expected.trim());
103
103
  }
104
104
  catch (error1) {
@@ -12,6 +12,6 @@ export declare class BasePage {
12
12
  * and URL provided in AppConfigurations.json
13
13
  */
14
14
  initializeBrowser(url?: string): Promise<void>;
15
- static setTestCaseID(testInfo: TestInfo, testCaseID?: number): void;
15
+ static setTestCaseID(testInfo: TestInfo, testCaseID?: string): void;
16
16
  static executionCompleted(testinfo: TestInfo): void;
17
17
  }
@@ -71,8 +71,8 @@ var BasePage = /** @class */ (function () {
71
71
  });
72
72
  };
73
73
  BasePage.setTestCaseID = function (testInfo, testCaseID) {
74
- if (testCaseID === void 0) { testCaseID = 0; }
75
- testInfo.testId = testCaseID.toString();
74
+ if (testCaseID === void 0) { testCaseID = "0"; }
75
+ testInfo.testId = testCaseID;
76
76
  (0, logs_core_1.logTestResult)('');
77
77
  (0, logs_core_1.logTestResult)("===== START Of Execution For TestCase ID: " + testCaseID + " Title: '" + testInfo.title + "' ======");
78
78
  (0, logs_core_1.logTestResult)('');
@@ -80,7 +80,7 @@ var BasePage = /** @class */ (function () {
80
80
  BasePage.executionCompleted = function (testinfo) {
81
81
  var _a;
82
82
  (0, logs_core_1.logTestResult)('');
83
- (0, logs_core_1.logTestResult)("===== END Of Execution For Test Case: '" + testinfo.title + "' With Test Result: '" + ((_a = testinfo.status) === null || _a === void 0 ? void 0 : _a.toUpperCase()) + "' =====");
83
+ (0, logs_core_1.logTestResult)("===== END Of Execution For Test Case: '" + testinfo.testId + "-" + testinfo.title + "' With Test Result: '" + ((_a = testinfo.status) === null || _a === void 0 ? void 0 : _a.toUpperCase()) + "' =====");
84
84
  (0, logs_core_1.logTestResult)('');
85
85
  };
86
86
  return BasePage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playwright-ts-automationframework",
3
- "version": "1.1.9",
3
+ "version": "1.1.12",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",