MCPcopy
hub / github.com/codeceptjs/CodeceptJS / clickablePoint

Function clickablePoint

lib/helper/Playwright.js:4744–4749  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

4742}
4743
4744async function clickablePoint(el) {
4745 const rect = await el.boundingBox()
4746 if (!rect) throw new ElementNotFound(el)
4747 const { x, y, width, height } = rect
4748 return { x: x + width / 2, y: y + height / 2 }
4749}
4750
4751async function refreshContextSession() {
4752 // close other sessions with timeout protection, but preserve active session contexts

Callers 3

moveCursorToMethod · 0.85
scrollToMethod · 0.85
dragSliderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected