@@ -1743,22 +1743,6 @@ export async function resizeChromeMcpPage(params: {
|
1743 | 1743 | }); |
1744 | 1744 | } |
1745 | 1745 | |
1746 | | -/** Accept or dismiss a Chrome MCP browser dialog. */ |
1747 | | -export async function handleChromeMcpDialog(params: { |
1748 | | -profileName: string; |
1749 | | -profile?: ChromeMcpProfileOptions; |
1750 | | -userDataDir?: string; |
1751 | | -targetId: string; |
1752 | | -action: "accept" | "dismiss"; |
1753 | | -promptText?: string; |
1754 | | -}): Promise<void> { |
1755 | | -await callTool(params.profileName, chromeMcpProfileOptionsFromParams(params), "handle_dialog", { |
1756 | | -pageId: parsePageId(params.targetId), |
1757 | | -action: params.action, |
1758 | | - ...(params.promptText ? { promptText: params.promptText } : {}), |
1759 | | -}); |
1760 | | -} |
1761 | | - |
1762 | 1746 | /** Evaluate a JavaScript function in a Chrome MCP page. */ |
1763 | 1747 | export async function evaluateChromeMcpScript(params: { |
1764 | 1748 | profileName: string; |
@@ -1781,22 +1765,6 @@ export async function evaluateChromeMcpScript(params: {
|
1781 | 1765 | return extractJsonMessage(result); |
1782 | 1766 | } |
1783 | 1767 | |
1784 | | -/** Wait for text conditions in a Chrome MCP page. */ |
1785 | | -export async function waitForChromeMcpText(params: { |
1786 | | -profileName: string; |
1787 | | -profile?: ChromeMcpProfileOptions; |
1788 | | -userDataDir?: string; |
1789 | | -targetId: string; |
1790 | | -text: string[]; |
1791 | | -timeoutMs?: number; |
1792 | | -}): Promise<void> { |
1793 | | -await callTool(params.profileName, chromeMcpProfileOptionsFromParams(params), "wait_for", { |
1794 | | -pageId: parsePageId(params.targetId), |
1795 | | -text: params.text, |
1796 | | - ...(typeof params.timeoutMs === "number" ? { timeout: params.timeoutMs } : {}), |
1797 | | -}); |
1798 | | -} |
1799 | | - |
1800 | 1768 | /** Replace Chrome MCP session creation for focused tests. */ |
1801 | 1769 | export function setChromeMcpSessionFactoryForTest(factory: ChromeMcpSessionFactory | null): void { |
1802 | 1770 | sessionFactory = factory; |
|