我是新手在這裏。請指教。如何選擇複選框在我的情況?如果沒有名稱,標識或標籤文字,如何在水豚的複選框?
<ul class="phrases-list" style="">
<li>
<input type="checkbox" class="select-phrase">
<span class="prase-title"> Dog - Wikipedia, the free encyclopedia </span>
<a href="en.wikipedia.org">(en.wikipedia.org)</a>
<div class="prase-desc hidden">The domestic dog (Canis lupus familiaris or Canis familiaris) is a domesticated...</div>
</li>
下,我不工作:
When /I check box "([^\"]+)"$/ do |label|
page.check(label)
end
步:我複選框 「狗 - 維基百科,自由的百科全書」
謝謝!我只是想知道是否有一些解決方法(不更改HTML)。但最好能夠肯定地改變。 – Tatyana