Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 selenium(java 服务器)单击一个按钮 - 该按钮只有一个类型,没有 id/值。任何有用的建议都将受到欢迎
<button type="submit">Enter</button>
另一个选项是 //button[contains(text(),'Enter')],但如果您有本地化站点,这会中断..
以下对我有用:
selenium.click("//button[@type='submit']"
我在 railscasts.com 上观看了关于 Kaminari 的一集,并尝试将这个系统添加到我的博客中。但是这个错误一次又一次地出现,我不明白为什么。
来自帖子控制器的索引操作:
def index @posts = Post.order("title").page(params[:page])