From: Sam Duncan Date: 2012-08-28T15:57:57+09:00 Subject: Re: #passing value instead of constant. On 08/28/2012 06:53 PM, ajay paswan wrote: > search="id" > name="text1" > browser.text_field(search, name).flash #is not working, ERROR:invalid > attribute: "id" > > but > browser.text_field(:id, name).flash #working > > I want something like the first one where I'll pass a string "id" or > class. Isn't it possible? > Is this some kind of rails voodoo? What happens if you switch it to; search="id" name="text1" browser.text_field(search.to_sym, name).flash Sam