剧作家Java:剧作家无法单击隐藏的属性的元素
I tried many locators but looks like its hidden so playwright fails to click any workaround please help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
I tried many locators but looks like its hidden so playwright fails to click any workaround please help
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
这是一种肮脏的方法。
Its a bit of a dirty way to do it but you can change the CSS if there is something there that makes it hidden e.g. a class or an attribute, or try and force the click using the DOM which is probably a better way to do it.
也许使用武力选项的点击方法可以帮助您:
Maybe using force option of click method will help you:
尝试 dispatchevent
不论元素的可见性状态,单击被派遣。这等同于调用
element.Click()
。try dispatchEvent
Regardless of the visibility state of the element, click is dispatched. This is equivalent to calling
element.click()
.