@auxcode/auxta 1.3.45 → 1.3.47

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.
@@ -23,7 +23,7 @@ class ExtendDefaultPage {
23
23
  extend_page_functions(page, time = this.defaultTimeout) {
24
24
  return __awaiter(this, void 0, void 0, function* () {
25
25
  this.defaultTimeout = config_1.config.timeout;
26
- const { goto: original_goto, click: original_click, type: original_type, waitForNetworkIdle: original_waitForNetworkIdle } = page;
26
+ const { goto: original_goto, click: original_click, type: original_type } = page;
27
27
  page.goto = function goto(url, options) {
28
28
  log_service_1.default.push('Then', `I go to the '${url}' page`, status_of_step_1.StatusOfStep.PASSED);
29
29
  return original_goto.apply(page, arguments);
@@ -47,21 +47,6 @@ class ExtendDefaultPage {
47
47
  }
48
48
  });
49
49
  };
50
- page.waitForNetworkIdle = function waitForNetworkIdle(selector, option) {
51
- return __awaiter(this, arguments, void 0, function* () {
52
- let message = 'I wait for the page to load';
53
- let result;
54
- try {
55
- result = yield original_waitForNetworkIdle.apply(page, arguments);
56
- log_service_1.default.push('Then', message, status_of_step_1.StatusOfStep.PASSED);
57
- }
58
- catch (e) {
59
- log_service_1.default.push('Then', message, status_of_step_1.StatusOfStep.FAILED);
60
- throw new Error(message);
61
- }
62
- return result;
63
- });
64
- };
65
50
  page.type = function type(field, value) {
66
51
  return __awaiter(this, arguments, void 0, function* () {
67
52
  try {
@@ -17,7 +17,7 @@ export class ExtendDefaultPage {
17
17
  extend_page_functions(page, time = this.defaultTimeout) {
18
18
  return __awaiter(this, void 0, void 0, function* () {
19
19
  this.defaultTimeout = config.timeout;
20
- const { goto: original_goto, click: original_click, type: original_type, waitForNetworkIdle: original_waitForNetworkIdle } = page;
20
+ const { goto: original_goto, click: original_click, type: original_type } = page;
21
21
  page.goto = function goto(url, options) {
22
22
  log.push('Then', `I go to the '${url}' page`, StatusOfStep.PASSED);
23
23
  return original_goto.apply(page, arguments);
@@ -41,21 +41,6 @@ export class ExtendDefaultPage {
41
41
  }
42
42
  });
43
43
  };
44
- page.waitForNetworkIdle = function waitForNetworkIdle(selector, option) {
45
- return __awaiter(this, arguments, void 0, function* () {
46
- let message = 'I wait for the page to load';
47
- let result;
48
- try {
49
- result = yield original_waitForNetworkIdle.apply(page, arguments);
50
- log.push('Then', message, StatusOfStep.PASSED);
51
- }
52
- catch (e) {
53
- log.push('Then', message, StatusOfStep.FAILED);
54
- throw new Error(message);
55
- }
56
- return result;
57
- });
58
- };
59
44
  page.type = function type(field, value) {
60
45
  return __awaiter(this, arguments, void 0, function* () {
61
46
  try {