Sunday, October 25, 2009

Webrat's have_xpath() in diff modes

have_xpath() behaves slightly differently in :selenium & :webrat mode.

From webrat's doc, we have:

Webrat::Matchers#have_xpath(expected, options = {}, &block)

And

Webrat::Selenium::Matchers::have_xpath(xpath)

If u are a xpath fan like me, there is no way u can conveniently switch between the 2 modes without getting bitten.

No comments:

Post a Comment

Labels