hi i suggest using "id" attribute without "any quotes" for name needed in the text field and a comma separator instead on=>.
example browser.text_field(:id,"idDiv_PWD_UsernameExample").set te...@test.com On Saturday, February 2, 2013 11:49:11 PM UTC+5:30, mc060200778 wrote: > > Hi, > > my question is how to set value in the textbox with following html code > > *<div id="idDiv_PWD_UsernameExample" class="placeholder ltr_override" > aria-hidden="true" style="cursor: text;">som...@example.com <javascript:> > </div>* > > > > *1st:* > @browser = Watir::Browser.new :chrome > @browser.div(:id => "idDiv_PWD_UsernameExample").set > 'te...@test.com<javascript:> > ' > > *2nd:* > @browser = Watir::Browser.new :chrome > @browser.text_field(:id => "idDiv_PWD_UsernameExample").set (" > te...@test.com <javascript:>") > > > *3rd:* > @browser = Watir::Browser.new :chrome > @browser.div(:class => "*placeholder ltr_override*").set > ("te...@test.com<javascript:> > ") > > > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.