# Webrat click\_link does not handle links with a query string?

**URL:** <https://www.ruby-forum.com/t/webrat-click-link-does-not-handle-links-with-a-query-string/194291>\
**Category:** Rails\
**Created:** [September 2, 2010, 2:32am UTC](https://www.ruby-forum.com/t/webrat-click-link-does-not-handle-links-with-a-query-string/194291 "2010-09-02T02:32:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ntk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/48db29/32.png) [@ntk](https://www.ruby-forum.com/u/ntk)\
**Post date:** [September 2, 2010, 2:32am UTC](https://www.ruby-forum.com/t/webrat-click-link-does-not-handle-links-with-a-query-string/194291/1 "2010-09-02T02:32:34Z")

</div>

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
