nonoCAPTCHA
nonoCAPTCHA copied to clipboard
Can't close chrome
Hello! I use your library to collect images from captcha, but the browser does not close. Function cleanup() is called, writes a log 'Browser closed', but browser.close() doesn't work.
I was mistake in the description, the browser is chromium
Hello, I will look into this and get it sorted out. What operating system did this occur on?
Hello? sorry for the delay, Ubuntu 18.04, I am not sure but function Browser.create in launcher.py passes argument self.killChrome to the fourth, and must a six. Sorry for my English)
@staticmethod
async def create(connection: Connection, contextIds: List[str],
ignoreHTTPSErrors: bool, appMode: bool,
process: Optional[Popen] = None,
closeCallback: Callable[[], Awaitable[None]] = None,
**kwargs: Any) -> 'Browser':
"""Create browser object."""
browser = Browser(connection, contextIds, ignoreHTTPSErrors, appMode,
process, closeCallback)
await connection.send('Target.setDiscoverTargets', {'discover': True})
return browser