MCPcopy
hub / github.com/coder/mux / sendMessage

Function sendMessage

scripts/reproWorkspaceSwitchTearWeb.ts:175–182  ·  view source on GitHub ↗
(page: Page, text: string)

Source from the content-addressed store, hash-verified

173}
174
175async function sendMessage(page: Page, text: string): Promise<void> {
176 const input = page.getByRole("textbox", {
177 name: /Message Claude|Edit your last message/,
178 });
179 await input.waitFor({ state: "visible", timeout: 60_000 });
180 await input.fill(text);
181 await page.keyboard.press("Enter");
182}
183
184// Wait for the completed assistant row, not just the first visible mock prefix.
185// The earlier repro only waited for text to start appearing, which exercised an

Callers 1

mainFunction · 0.70

Calls 1

waitForMethod · 0.80

Tested by

no test coverage detected