MCPcopy
hub / github.com/hotwired/turbo / outerHTMLForSelector

Function outerHTMLForSelector

src/tests/helpers/page.js:186–189  ·  view source on GitHub ↗
(page, selector)

Source from the content-addressed store, hash-verified

184}
185
186export async function outerHTMLForSelector(page, selector) {
187 const element = await page.locator(selector)
188 return element.evaluate((element) => element.outerHTML)
189}
190
191export function pathname(url) {
192 const { pathname } = new URL(url)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…