"""Structural composer finder + reveal-and-find reach + cross-nav retry, verified without a live webview: a mock executor scripts BrowserFindComposer results so the send-script's structural fallback path (find -> reveal -> re-perceive-on-nav -> fill) is exercised end to end, including the flag gating and the safety that reveal only forwards under the flag.""" import pytest from backend.apps.agents.browser import browser_send_script as ss from backend.apps.agents.browser.browser_agent import send_submit_index_in_state, payload_in_textbox TASK = "go to tyler chen's linkedin hes in entrepreneurs first and text him '[test] hello world r9-os'" NAMELESS = '[1]\n[2]