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.
Capybara3日間使用していますが、問題が発生しました。
Capybara
HTMLコードがあります:
<span id='some_id'> Text </span>
でテキストを変更する必要がありCapybaraます。出来ますか?
使用できるはずですexecute_script:
execute_script
page.execute_script("$('span#some_id').html('New Text');")
これは、JQuery があることを前提としています。そうでない場合は、内部のスクリプトを使用しているフレームワークに置き換えます。