Webrat click_link does not handle links with a query string?

New to webrat. Like it but the thing which I either don’t understand is in an apparent inability to handle clicking links which have a query string. This seems to happen on anything with a query string.

For example:

With this command:

click_link “SM SERVICING”

This is the error I get:


URI::InvalidURIError: bad URI(is not URI?): /supplements/new?supplement[comparison_id]=37036189&supplement[order_detail_report_id]=25841&supplement[trade_creditor]=SM SERVICING&supplement[trade_account_number]=ACCT000030

I have verified that webrat works with a simple link. Is this the best I can get, and maybe should go to Selenium, which seems to handle this better? I see that Selenium and Webrat work together, just want to make sure I am not missing something.