selenium.get_value('css=input[name=btnG]')
That drops down into selenium; not sure whether you're using selenium
with webrat, but it's easier sometimes when you need to get specific
with your locators. Webrat makes too many assumptions in click_button
and click_link for my tastes. Of course you can always tweak webrat
itself to accept a selector, instead of constructing one for you, if
you don't want to use selenium. :)
Also, the FireFinder plugin for Firefox/Firebug is invaluable for
sanity checking CSS selectors.
Curran
> --
> You received this message because you are subscribed to the Google Groups "webrat" group.
> To post to this group, send email to web...@googlegroups.com.
> To unsubscribe from this group, send email to webrat+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/webrat?hl=en.
>
>
selenium.click('css=input[name=btnG]')
And I meant to point you to the very thorough reference on CSS
selectors: http://www.w3.org/TR/css3-selectors/#selector-syntax
Curran