我如何从网站上获取动态元素,以便我可以在夜间观看
我想获得“取消”元素。但是取消按钮的元素是动态的,如下所示: 在此处输入图像描述
//*[@id="TD/D0202/22/00321-content"]/div/button[1]/span
如何在 Nightwatch 脚本中使用该元素?
I want to get "Cancel" element. But the element of Cancel Button is dynamic, like this :
enter image description here
//*[@id="TD/D0202/22/00321-content"]/div/button[1]/span
How can i use the element to my nightwatch script?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CSS 选择器:
XPATH 选择器:
有很多可能性来捕获此元素。
CSS Selector:
XPATH Selector:
There are a lot of possibilities to capture this element.