Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Fixed `404 Not Found` WebSocket connection error for `iframe` targets by routing all target connections to `/devtools/page/<target_id>` in `Browser._handle_target_update`.

### Added

### Changed
Expand Down
2 changes: 1 addition & 1 deletion zendriver/core/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ async def _handle_target_update(
new_target = Tab(
(
f"ws://{self.config.host}:{self.config.port}"
f"/devtools/{target_info.type_ or 'page'}" # all types are 'page' internally in chrome apparently
f"/devtools/page" # all types are 'page' internally in chrome apparently
f"/{target_info.target_id}"
),
target=target_info,
Expand Down