playwright-ts-automationframework 1.1.47 → 1.1.48
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.
|
@@ -333,6 +333,8 @@ export declare class Actions extends BasePage {
|
|
|
333
333
|
*/
|
|
334
334
|
sleep(timeInSeconds?: number): Promise<void>;
|
|
335
335
|
waitForPageTimeout(timeoutInSeconds?: number): Promise<void>;
|
|
336
|
+
waitForPageLoad(): Promise<void>;
|
|
337
|
+
waitForPageDOMcontentLoaded(): Promise<void>;
|
|
336
338
|
waitForNetworkIdle(): Promise<void>;
|
|
337
339
|
refreshWebPage(): Promise<void>;
|
|
338
340
|
/**
|
package/lib/core/actions.core.js
CHANGED
|
@@ -570,7 +570,7 @@ var Actions = /** @class */ (function (_super) {
|
|
|
570
570
|
case 2:
|
|
571
571
|
error_4 = _a.sent();
|
|
572
572
|
(0, logs_core_1.logError)("Unable to read attribute value from '".concat(control.controlDescription, "' - Reason: ").concat(error_4));
|
|
573
|
-
return [2 /*return*/, null];
|
|
573
|
+
return [2 /*return*/, null];
|
|
574
574
|
case 3: return [2 /*return*/];
|
|
575
575
|
}
|
|
576
576
|
});
|
|
@@ -920,6 +920,30 @@ var Actions = /** @class */ (function (_super) {
|
|
|
920
920
|
});
|
|
921
921
|
});
|
|
922
922
|
};
|
|
923
|
+
Actions.prototype.waitForPageLoad = function () {
|
|
924
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
925
|
+
return __generator(this, function (_a) {
|
|
926
|
+
switch (_a.label) {
|
|
927
|
+
case 0: return [4 /*yield*/, this.page.waitForLoadState("load")];
|
|
928
|
+
case 1:
|
|
929
|
+
_a.sent();
|
|
930
|
+
return [2 /*return*/];
|
|
931
|
+
}
|
|
932
|
+
});
|
|
933
|
+
});
|
|
934
|
+
};
|
|
935
|
+
Actions.prototype.waitForPageDOMcontentLoaded = function () {
|
|
936
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
937
|
+
return __generator(this, function (_a) {
|
|
938
|
+
switch (_a.label) {
|
|
939
|
+
case 0: return [4 /*yield*/, this.page.waitForLoadState("domcontentloaded")];
|
|
940
|
+
case 1:
|
|
941
|
+
_a.sent();
|
|
942
|
+
return [2 /*return*/];
|
|
943
|
+
}
|
|
944
|
+
});
|
|
945
|
+
});
|
|
946
|
+
};
|
|
923
947
|
Actions.prototype.waitForNetworkIdle = function () {
|
|
924
948
|
return __awaiter(this, void 0, void 0, function () {
|
|
925
949
|
return __generator(this, function (_a) {
|