diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2019-03-16 14:01:30 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2019-03-16 17:17:46 +0100 |
commit | 810f9b3fdfb729b23e77de13497f711b1e78d15e (patch) | |
tree | 0f5e908f756c7d95efb149162988220e42960023 /crocoite/behavior.py | |
parent | 952240c2a52b26ef66324e78216366f4c9dd26f4 (diff) | |
download | crocoite-810f9b3fdfb729b23e77de13497f711b1e78d15e.tar.gz crocoite-810f9b3fdfb729b23e77de13497f711b1e78d15e.tar.bz2 crocoite-810f9b3fdfb729b23e77de13497f711b1e78d15e.zip |
Add more debug messages
…to controller and behavior
Diffstat (limited to 'crocoite/behavior.py')
-rw-r--r-- | crocoite/behavior.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crocoite/behavior.py b/crocoite/behavior.py index 2d1dd0d..02fe2ea 100644 --- a/crocoite/behavior.py +++ b/crocoite/behavior.py @@ -198,10 +198,14 @@ class EmulateScreenMetrics (Behavior): l = self.loader tab = l.tab for s in sizes: + self.logger.debug ('device override', + uuid='3d2d8096-1a75-4830-ad79-ae5f6f97071d', **s) await tab.Emulation.setDeviceMetricsOverride (**s) # give the browser time to re-eval page and start requests # XXX: should wait until loader is not busy any more await asyncio.sleep (1) + self.logger.debug ('clear override', + uuid='f9401683-eb3a-4b86-9bb2-c8c5d876fc8d') await tab.Emulation.clearDeviceMetricsOverride () return yield # pragma: no cover |