get_title() sometimes errors with TypeError if the page hasn't loaded enough
The call inside was return await self.evaluate("document.title").
Here's the full error that sometimes happens: TypeError: cannot unpack non-iterable NoneType object.
Maybe happens if the page hasn't loaded enough for the title to appear yet.
get_title()sometimes errors withTypeErrorif the page hasn't loaded enoughThe call inside was
return await self.evaluate("document.title").Here's the full error that sometimes happens:
TypeError: cannot unpack non-iterable NoneType object.Maybe happens if the page hasn't loaded enough for the title to appear yet.