セレンを使用したフォームで Tokeninput フィールドをテストできません。何かを入力すると、選択するオプションのリストが表示されますが、それらのオプションは DOM の一部ではありません。テキストはフィールドを埋めますが、アイテムを選択しません。
私が書いたコードは次のとおりです。
Given admin user is on schedule interview page
And he select "obie[1]" and "DHH[1]" from the candidate name(s) auto sugget field
**step defination**
Given /^he select "([^"]*)" and "([^"]*)" from the candidate name\(s\) auto sugget field$/ do |arg1, arg2|
within(:css, "#interview_template_candidate_names_input") do
fill_in('tmp',:with => arg1) --tmp is name of the token input field
find("li:contains('obie[1])'").click
save_and_open_page
end
end