Skip to content

get_title() sometimes errors with TypeError if the page hasn't loaded enough #4401

@mdmintz

Description

@mdmintz

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.

Metadata

Metadata

Assignees

Labels

UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModebugUh oh... Something needs to be fixed

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions