PlaywrightCapture 1.27.8__py3-none-any.whl → 1.28.0__py3-none-any.whl
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.
- playwrightcapture/capture.py +10 -5
- {playwrightcapture-1.27.8.dist-info → playwrightcapture-1.28.0.dist-info}/METADATA +1 -1
- playwrightcapture-1.28.0.dist-info/RECORD +9 -0
- {playwrightcapture-1.27.8.dist-info → playwrightcapture-1.28.0.dist-info}/WHEEL +1 -1
- playwrightcapture-1.27.8.dist-info/RECORD +0 -9
- {playwrightcapture-1.27.8.dist-info → playwrightcapture-1.28.0.dist-info}/LICENSE +0 -0
playwrightcapture/capture.py
CHANGED
@@ -757,6 +757,8 @@ class Capture():
|
|
757
757
|
self.logger.debug(f'Moved time forward by ~{time}s.')
|
758
758
|
except (TimeoutError, asyncio.TimeoutError):
|
759
759
|
self.logger.info('Unable to move time forward.')
|
760
|
+
except Exception as e:
|
761
|
+
self.logger.info(f'Error while moving time forward: {e}')
|
760
762
|
|
761
763
|
async def __instrumentation(self, page: Page, url: str, allow_tracking: bool, clock_set: bool) -> None:
|
762
764
|
# page instrumentation
|
@@ -1041,11 +1043,14 @@ class Capture():
|
|
1041
1043
|
except Error as e:
|
1042
1044
|
self.logger.warning(f'Unable to bring the page to the front: {e}.')
|
1043
1045
|
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1046
|
+
try:
|
1047
|
+
if self.headless:
|
1048
|
+
await self.__instrumentation(page, url, allow_tracking, clock_set)
|
1049
|
+
else:
|
1050
|
+
self.logger.debug('Headed mode, skipping instrumentation.')
|
1051
|
+
await self._wait_for_random_timeout(page, self._capture_timeout - 5)
|
1052
|
+
except Exception as e:
|
1053
|
+
self.logger.exception(f'Error during instrumentation: {e}')
|
1049
1054
|
|
1050
1055
|
if multiple_downloads:
|
1051
1056
|
if len(multiple_downloads) == 1:
|
@@ -0,0 +1,9 @@
|
|
1
|
+
playwrightcapture/__init__.py,sha256=F90Y8wYS13tDjgsfjuFrCfmzQfdnH44G-ovuilJfLEE,511
|
2
|
+
playwrightcapture/capture.py,sha256=0jYIAx5EmdZKGfGaeGhGorc9wIAzDHhgBaBjMkuV5kI,80780
|
3
|
+
playwrightcapture/exceptions.py,sha256=LhGJQCGHzEu7Sx2Dfl28OFeDg1OmrwufFjAWXlxQnEA,366
|
4
|
+
playwrightcapture/helpers.py,sha256=SXQLEuxMs8-bcWykMiUVosHzzxBKuS-QC0gBV3OmKmo,1764
|
5
|
+
playwrightcapture/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
playwrightcapture-1.28.0.dist-info/LICENSE,sha256=uwFc39fTLacBUG-XTuxX6IQKTKhg4z14gWOLt3ex4Ho,1775
|
7
|
+
playwrightcapture-1.28.0.dist-info/METADATA,sha256=Gy161otOL3sz3p-kF_IMwcEmqbGl7_Xal2Z3GdvwzTw,2998
|
8
|
+
playwrightcapture-1.28.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
9
|
+
playwrightcapture-1.28.0.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
playwrightcapture/__init__.py,sha256=F90Y8wYS13tDjgsfjuFrCfmzQfdnH44G-ovuilJfLEE,511
|
2
|
-
playwrightcapture/capture.py,sha256=vz1XjydsMaN6jlZNVlSxJsYnyqsNDWFlz5ppBEa2Ylk,80519
|
3
|
-
playwrightcapture/exceptions.py,sha256=LhGJQCGHzEu7Sx2Dfl28OFeDg1OmrwufFjAWXlxQnEA,366
|
4
|
-
playwrightcapture/helpers.py,sha256=SXQLEuxMs8-bcWykMiUVosHzzxBKuS-QC0gBV3OmKmo,1764
|
5
|
-
playwrightcapture/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
playwrightcapture-1.27.8.dist-info/LICENSE,sha256=uwFc39fTLacBUG-XTuxX6IQKTKhg4z14gWOLt3ex4Ho,1775
|
7
|
-
playwrightcapture-1.27.8.dist-info/METADATA,sha256=BejRdCuS5X4I_k8c0XlDMiHXHGvGITahyzv9aniN8tY,2998
|
8
|
-
playwrightcapture-1.27.8.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
9
|
-
playwrightcapture-1.27.8.dist-info/RECORD,,
|
File without changes
|