如何使用特定的班级名称单击每个DIV
我是一个新手程序员,所以请我。 我必须从主窗口打开一堆弹出窗口,以刮擦一些数据。 但是,没有一个链接只有很多带有相同类名的divs,当单击打开弹出窗口时。 我该如何使用Watir? 谢谢。
I'm quite a newbie programmer so pardon me.
I have to open a bunch of popup windows from the main one, to scrape some data.
But there's not a link just many divs with the same class name, that when clicked open the popups.
How do I do that using watir?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用以下匹配的类名来获得所有DIVS:
可以像其他任何元素类型一样单击它们 - 例如:
You can get all the divs with the matching class name using:
They can be clicked like any other element type - eg: