Hi All,
I am running a python script which launches an instance of headless chrome, and uses
PyChromeDevTools wrapper for the devtools protocol to interact with it. Everything works as expected, apart from Browser.close.
Browser.getVersion returns the following:
{'protocolVersion': '1.2', 'product': 'HeadlessChrome/63.0.3239.108', 'revision': '@d2626860fae283daee484943e6820af18fc73fd9', 'userAgent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/63.0.3239.108 Safari/537.36', 'jsVersion': '6.3.292.48'}
However with Browser.close gives the following error:
{'error': {'code': -32601, 'message': "'Browser.close' wasn't found"}
A minimal script would be the following:
import PyChromeDevTools
chrome = PyChromeDevTools.ChromeInterface()
chrome.Browser.close()
(As it is set up PyChromeDevTools actually doesn't return anything, but a little but if you print the returned error, this is what you get). I've also tried this using Chrome 64 Beta and it doesn't seem to make any difference.
I appologise if this isn't the appropriate channel to post something like this on (I am new to the open-source community). Should I raise this as an issue on either of the devtools-protocol or PyChromeDevTools repos? Has anyone else had this behaviour with Browser.close()? Any help is much appreciated. Thanks.