MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / toOuterHTML

Method toOuterHTML

lib/element/WebElement.js:501–512  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

499 }
500
501 async toOuterHTML() {
502 switch (this.helperType) {
503 case 'playwright':
504 return this.element.evaluate(el => el.outerHTML)
505 case 'puppeteer':
506 return this.element.evaluate(el => el.outerHTML)
507 case 'webdriver':
508 return this.helper.browser.execute(el => el.outerHTML, this.element)
509 default:
510 throw new Error(`Unsupported helper type: ${this.helperType}`)
511 }
512 }
513
514 async toSimplifiedHTML(maxLength = 300) {
515 const outerHTML = await this.toOuterHTML()

Callers 2

toSimplifiedHTMLMethod · 0.95
els_test.jsFile · 0.80

Calls 1

evaluateMethod · 0.80

Tested by

no test coverage detected