当尝试通过 Watir 中的 x-path 来单击 jquery [+} 树时,我收到以下错误错误的参数数量(3 for 1)(ArgumentError)
When /^Go to e-Care and search for the policy created$/ do
link = element_by_xpath(String("//{0}[contains(normalize-space(text()),{1})]", "a",`enter code here` "Actions"))
link_parent = link.element_by_xpath((".."))
plus_div = link_parent.element_by_class(("expandable-hitarea"))
plus_div.click
end