Forum: Ruby on Rails Webrat click_link does not handle links with a query string?

Posted by David Kahn (Guest)
on 2010-09-02 02:32
(Received via mailing list)
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.