playwright-ts-automationframework 1.1.71 → 1.1.72
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.
- package/lib/core/actions.core.js +0 -9
- package/package.json +1 -1
package/lib/core/actions.core.js
CHANGED
|
@@ -606,7 +606,6 @@ class Actions extends basePage_core_1.BasePage {
|
|
|
606
606
|
}
|
|
607
607
|
catch (error) {
|
|
608
608
|
(0, logs_core_1.logError)(`❌ Page URL did not match or load within ${timeoutInSeconds}s. Expected: '${url}' due to reason: '${error}'`);
|
|
609
|
-
throw error;
|
|
610
609
|
}
|
|
611
610
|
}
|
|
612
611
|
/**
|
|
@@ -630,7 +629,6 @@ class Actions extends basePage_core_1.BasePage {
|
|
|
630
629
|
}
|
|
631
630
|
catch (error) {
|
|
632
631
|
(0, logs_core_1.logError)(`❌ waitTillElementIsPresent failed for '${control.controlDescription}' (visible, ${timeoutInSeconds}s) due to reason: '${error}'`);
|
|
633
|
-
throw error;
|
|
634
632
|
}
|
|
635
633
|
}
|
|
636
634
|
/**
|
|
@@ -654,7 +652,6 @@ class Actions extends basePage_core_1.BasePage {
|
|
|
654
652
|
}
|
|
655
653
|
catch (error) {
|
|
656
654
|
(0, logs_core_1.logError)(`❌ waitTillElementIsAttached failed for '${control.controlDescription}' (attached, ${timeoutInSeconds}s) due to reason: '${error}'`);
|
|
657
|
-
throw error;
|
|
658
655
|
}
|
|
659
656
|
}
|
|
660
657
|
/**
|
|
@@ -677,7 +674,6 @@ class Actions extends basePage_core_1.BasePage {
|
|
|
677
674
|
}
|
|
678
675
|
catch (error) {
|
|
679
676
|
(0, logs_core_1.logError)(`❌ Element did not become hidden within ${timeoutInSeconds}s: '${control.controlDescription}' due to reason: '${error}'`);
|
|
680
|
-
throw error;
|
|
681
677
|
}
|
|
682
678
|
}
|
|
683
679
|
/**
|
|
@@ -698,7 +694,6 @@ class Actions extends basePage_core_1.BasePage {
|
|
|
698
694
|
}
|
|
699
695
|
catch (error) {
|
|
700
696
|
(0, logs_core_1.logError)(`❌ waitForPageTimeout failed after ${timeoutInSeconds}s due to reason: '${error}'`);
|
|
701
|
-
throw error;
|
|
702
697
|
}
|
|
703
698
|
}
|
|
704
699
|
async waitForPageLoad(timeInSeconds = 30) {
|
|
@@ -707,7 +702,6 @@ class Actions extends basePage_core_1.BasePage {
|
|
|
707
702
|
}
|
|
708
703
|
catch (error) {
|
|
709
704
|
(0, logs_core_1.logError)(`❌ Page did not reach load state within ${timeInSeconds}s due to reason: '${error}'`);
|
|
710
|
-
throw error;
|
|
711
705
|
}
|
|
712
706
|
}
|
|
713
707
|
async waitForPageDOMcontentLoaded(timeInSeconds = 30) {
|
|
@@ -716,7 +710,6 @@ class Actions extends basePage_core_1.BasePage {
|
|
|
716
710
|
}
|
|
717
711
|
catch (error) {
|
|
718
712
|
(0, logs_core_1.logError)(`❌ Page did not reach DOM content loaded within ${timeInSeconds}s due to reason: '${error}'`);
|
|
719
|
-
throw error;
|
|
720
713
|
}
|
|
721
714
|
}
|
|
722
715
|
async waitForNetworkIdle(timeInSeconds = 30) {
|
|
@@ -725,7 +718,6 @@ class Actions extends basePage_core_1.BasePage {
|
|
|
725
718
|
}
|
|
726
719
|
catch (error) {
|
|
727
720
|
(0, logs_core_1.logError)(`❌ Network did not become idle within ${timeInSeconds}s due to reason: '${error}'`);
|
|
728
|
-
throw error;
|
|
729
721
|
}
|
|
730
722
|
}
|
|
731
723
|
async refreshWebPage(timeInSeconds = 30) {
|
|
@@ -734,7 +726,6 @@ class Actions extends basePage_core_1.BasePage {
|
|
|
734
726
|
}
|
|
735
727
|
catch (error) {
|
|
736
728
|
(0, logs_core_1.logError)(`❌ Unable to refresh the page due to reason: '${error}'`);
|
|
737
|
-
throw error;
|
|
738
729
|
}
|
|
739
730
|
}
|
|
740
731
|
/**
|