Webrat click_link does not handle links with a query string?

10 views
Skip to first unread message

David Kahn

unread,
Sep 1, 2010, 8:31:09 PM9/1/10
to rubyonra...@googlegroups.com
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:
test_supplement_dialog_process(MeridianlinkSupplementTest):
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.

Thanks,

David
Reply all
Reply to author
Forward
0 new messages