mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
fix(browser): add missing action-to-method mappings in CDP bridge
url, title, reload, go_back, go_forward, tab_info were not mapped to their hanzo.* / Page.* CDP equivalents, causing "Unknown method" errors when routed through the extension.
This commit is contained in:
@@ -367,6 +367,12 @@ class CDPBridgeServer:
|
||||
"evaluate": "Runtime.evaluate",
|
||||
"tabs": "Target.getTargets",
|
||||
"status": "Browser.getVersion",
|
||||
"url": "hanzo.url",
|
||||
"title": "hanzo.title",
|
||||
"reload": "Page.reload",
|
||||
"go_back": "Page.goBack",
|
||||
"go_forward": "Page.goForward",
|
||||
"tab_info": "hanzo.tabInfo",
|
||||
}
|
||||
return action_map.get(action, action)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user