Repository navigation
Releases
Releases · browserless/bap-py
v0.3.0
0.3.0 (2026-11-13)
⚠ BREAKING CHANGES
Page.query_selector()andPage.query_selector_all()no longer fetchinnerHTML/outerHTML; passhtml=True. ReadingElementHandle.inner_htmlorouter_htmlon a handle queried without it raisesBAPValueError.Page.response()no longer returnsbody; passbody=True(orbody_encoding=True, which implies it). the exceptionsTimeoutError,ConnectionErrorandValueErrorare removed frombrowserless_bapandbrowserless_bap.errors; useBAPTimeoutError,BAPConnectionErrorandBAPValueError(they still subclass the matching built-in exceptions).browserless_bap.graphql.RESPONSE_FIELDSno longer has theHTTPResponseWithRemoteMetadataandResponseResponseWithBodyEncodingkeys; useOPTIONAL_FIELDSwithselection_for().QuerySelectorResponse["childElementCount"]is typedint(wasfloat), andbrowserless_bap.sync_api.Browserless.connect(transport=...)is typedTransportFactory | None(wasAny).- Opening a page now times out after
connect_timeout(default: thetimeoutvalue, 30000 ms). Passconnect_timeout=0to restore the previous unbounded wait.
Features
- bound connection time and harden the transport (#9) (1689f3b)
- make element HTML and response bodies opt-in and rename builtin-shadowing errors (#8) (bc80671)