HENNGE / arsenic

Async WebDriver implementation for asyncio and asyncio-compatible frameworks
Other
349 stars 52 forks source link

How to get page title? #141

Open Duartemartins opened 2 years ago

Duartemartins commented 2 years ago

Hey I'm stuck trying to get the title of a page. The documentation doesn't state a get_title() method and when I try get_headers() the following error is returned: `AttributeError: 'Session' object has no attribute 'get_headers'

https://arsenic.readthedocs.io/en/latest/reference/session.html

amckenzie132 commented 2 years ago

It would be nice to have a get_title() method. In the meantime I'm using this workaround:

title = await session._request(url="/title", method="GET")