我有使用十进制值的基本黄瓜场景大纲:
Given I have clicked the Search Button
When I select <MinEngineSize> and <MaxEngineSize> dropdown fields from the Engine size filter
And I click the Show results button
Then the search results are displayed
例子:
|MinEngineSize|MaxEngineSize|
|1.1 Litres|1.6 Litres|
出于某种原因,ruby 似乎将小数点前后的数字拆分为单独的 args 当 /^I 从引擎大小过滤器中选择 (\d+).(\d+) 升和 (\d+).(\d+) 升下拉字段时$/ 做 |arg1, arg2, arg3, arg4|
当我执行 .rb 文件时,出现以下错误:
在选择列表中找不到“1”(Watir::Exception::NoValueFoundException)
如何让红宝石将十进制值视为一个参数?可能是新手的错误,但那是我的水平。
谢谢!