//td[normalize-space(text())='Peter']/parent::tr//label[normalize-space(text())="Present"]/@for
It is valid, yet webrat's have_xpath() kept complaining that it cannot find it. As a workaround, i did something like this in my cucumber:
1 | hdoc = Nokogiri::HTML(response.body) |
That's all.
No comments:
Post a Comment