>>I used set focus method but still it has a problem. and the problem is? what happens when you try to run the code? do you get an error? if so what is the message.
knowing the nature of the failure is paramount to troubleshooting the problem. On Jun 2, 11:34 pm, "KiranD" <[email protected]> wrote: > Hi Guys > > I am trying to enter some text in the textbox through Watir , > > but it is not able to enter text directly in the textbox until I click on > web page area. > > When I click on any where on the page area then it shows description string > in Textbox. > > I used set focus method but still it has a problem. > > I have to data driven testing. help me to resolve this > > Here is the piece of code that I used. > > ie.bring_to_front() > > ie.text_field(:id,"short_desc").focus() > > ie.text_field(:id,"short_desc").set "Description" > > <td nowrap colspan=2> > > <span id="bugid_label" class="lbl">Description: </span> > > <span id="bugid" class="static"></span> > > > > <span id="static_short_desc" class="static" style="width:500px; > display:none;"></span> > > <input name="short_desc" type="text" id="short_desc" class="txt" > size="100" maxlength="200" /> > > > > <span id="short_desc_err" class="err"> </span> > > Best regards, > > KiranD --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to [email protected] Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/watir-general -~----------~----~----~----~------~----~------~--~---
