post action screenshot works for script run (#3235)

This commit is contained in:
Shuchang Zheng
2025-08-19 16:44:01 -07:00
committed by GitHub
parent e67f0a1e7e
commit b011842a71
2 changed files with 60 additions and 21 deletions

View File

@@ -385,7 +385,7 @@ class BrowserManager:
script_id: str | None = None,
browser_session_id: str | None = None,
) -> BrowserState:
browser_state = await self.get_for_script(script_id=script_id)
browser_state = self.get_for_script(script_id=script_id)
if browser_state:
return browser_state
@@ -422,7 +422,7 @@ class BrowserManager:
return browser_state
async def get_for_script(self, script_id: str | None = None) -> BrowserState | None:
def get_for_script(self, script_id: str | None = None) -> BrowserState | None:
if script_id and script_id in self.pages:
return self.pages[script_id]
return None