如何与剧作家一起使用鬼魂

发布于 2025-02-08 07:56:14 字数 262 浏览 2 评论 0原文

我不能将幽灵曲与剧作家的

const page = await context.newPage()
const cursor = await createCursor(page)
await cursor.click(buttonSelector)

结果使用:

TypeError: Cannot read properties of undefined (reading 'objectId')

I cannot use ghost-cursor with playwright

const page = await context.newPage()
const cursor = await createCursor(page)
await cursor.click(buttonSelector)

result:

TypeError: Cannot read properties of undefined (reading 'objectId')

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

℡寂寞咖啡 2025-02-15 07:56:14

在参数中需要发送选择器,而不是发送obledingbox。
喜欢:

await cursor.click(await cursor.getElemBoundingBox(buttonSelector))

或:

await cursor.click(await buttonElement.boundingBox())

in parameter need send not selector but boundingBox.
like:

await cursor.click(await cursor.getElemBoundingBox(buttonSelector))

or:

await cursor.click(await buttonElement.boundingBox())
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文