【发布时间】:2015-03-27 15:29:20
【问题描述】:
我有以下 HTML
<div class="brands brands-search-region">
<section class="module">
<div class="listing">
<article id="" class="node node-brand brand brand-item clickable multiple-item" about="/node/85531" typeof="sioc:Item foaf:Document">
<a href="/node/85531">
</a>
</article>
</div>
</section>
</div>
我可以在 chrome 中点击文章元素,但不能在 Firefox 中使用:
browser.div(class: 'brands-search-region').article.click
我知道我能做到:
browser.div(class: 'brands-search-region').article.a.click that works in both but why does the previous not work in firefox?
我正在使用最新版本的 firefox、chromedriver 和 selenium-webdriver 的 watir-webdriver
【问题讨论】:
-
你使用的是FF36?有错误信息吗?
-
是的 Firefox 36.0.4。没有错误,它只是移动到下一行代码。
标签: selenium-webdriver watir watir-webdriver