$browser.text_field(:name,"form[element3]").set("Ruby")
It works in IE. But when I use the same command in Safari and FF,get the same error as rsb. Anyone knows how to resolve this in SafariWatir and FireWatir??? On Thu, May 27, 2010 at 5:26 AM, George <george.sand...@gmail.com> wrote: > It seems to work for me (I'm using IE8). > > require 'watir' > > browser = Watir::IE.attach(:title, 'Kontakt') > browser.text_field(:name, "form[element3]").set "This example > demonstrates the power of Watir and Ruby!" > > > On May 26, 9:08 am, rsb <r...@antispam.de> wrote: > > Hi, > > > > for a little tutorial I created a website with Rapidweaver. With the > > tutorial I want to fill a contact form. > > > > see: > > > > http://www.earthbook.de/kontakt/kontakt.php > > > > If i try to fill the textarea I get the following error: > > > > Watir::Exception::UnknownObjectException: Unable to locate TextField > > element with name of form[element3] > > > > -------- my Watir code ------- > > # Let us fill out the form > > browser.text_field(:name, "form[element0]").set "My Name is Rene" > > browser.text_field(:name, "form[element1]").set "r...@unknown.xx" > > browser.text_field(:name, "form[element2]").set "Test Automation" > > browser.text_field(:name, "form[element3]").set "This example > > demonstrates the power of Watir and Ruby!" > > -------- my Watir code ------- > > > > ---------- HTML Code ----- > > <label>Nachricht:</label> *<br /> > > <textarea class="form-input-field" name="form[element3]" rows="8" > > cols="38"></textarea><br /><br /> > > ---------- HTML Code ----- > > > > Any ideas...? > > > > Regards > > René > > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > You received this message because you are subscribed to > http://groups.google.com/group/watir-general > To post: watir-general@googlegroups.com > To unsubscribe: > watir-general+unsubscr...@googlegroups.com<watir-general%2bunsubscr...@googlegroups.com> > -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com