0
我嘗試從場景中獲取字符串並設置爲步驟定義。但它不工作。黃瓜水豚步功能
我的情況是
Scenario: Save Contact with empty field in setting page
Given I logged in
When remove "contact" manitary field
Then I click save button
Then I should see message
和我的步驟定義是
When /^remove "([^"]*)" manitary field$/ do |n|
rows = all('##{n}-mapping-table tbody tr')
rows.each do |raw|
within raw do
find('.remove_nested_fields').click
sleep 1
end
end
find("##{n}-mapping-table thead tr th.add-new .insert_in_table").click
end
錯誤消息是An invalid or illegal string was specified (Selenium::WebDriver::Error::UnknownError)
我不知道是什麼在這裏的錯誤。
感謝您的意見
哦。簡單的錯誤。謝謝 :) – Selvamani