From 000c8d1f471320dfee050159cb503f74163e9d71 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 8 Nov 2018 17:12:16 +0100 Subject: devtools: Disable websocket pings to Chrome Chrome does not like that. --- crocoite/test_devtools.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'crocoite/test_devtools.py') diff --git a/crocoite/test_devtools.py b/crocoite/test_devtools.py index a6eeda2..4ffbbf8 100644 --- a/crocoite/test_devtools.py +++ b/crocoite/test_devtools.py @@ -151,3 +151,13 @@ def test_tab_function_hash (tab): d = {tab.Network.enable: 1, tab.Network.disable: 2, tab.Page: 3, tab.Page.enable: 4} assert len (d) == 4 +@pytest.mark.asyncio +async def test_ws_ping(tab): + """ + Chrome does not like websocket pings and closes the connection if it + receives one. Not sure why. + """ + with pytest.raises (Crashed): + await tab.ws.ping () + await tab.Browser.getVersion () + -- cgit v1.2.3