MCPcopy
hub / github.com/remix-run/react-router / getHtml

Function getHtml

integration/helpers/playwright-fixture.ts:235–241  ·  view source on GitHub ↗
(page: Page, selector?: string)

Source from the content-addressed store, hash-verified

233}
234
235export async function getHtml(page: Page, selector?: string) {
236 let html = await getPageContent(page);
237 let selectedHtml = selector
238 ? await selectHtml(html, selector)
239 : await prettyHtml(html);
240 return selectedHtml;
241}
242
243export function getElement(source: string, selector: string) {
244 let el = cheerio(selector, source);

Callers 2

getHtmlMethod · 0.70
getElementMethod · 0.70

Calls 3

getPageContentFunction · 0.85
selectHtmlFunction · 0.85
prettyHtmlFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…