< a href =“#”id =“text”data-content =“这是一个离散的条形图.”> Foo< / a>
不起作用:
page.find(:css,'a[data-content="This is a discrete bar chart."]')
作品:
page.find(:css,'a#test')
find("a[data-method='delete']").click
并为我工作.