Kiran,

I just tried the same and it worked perfectly fine from here. Attached the
html & .rb file for ref.
I suspect there are some more parameters invovled in this case, which might
be impacting the script when you run from your end. Can check out more if
you can share the entire html file.

Thanks & regards,
KK

On Wed, Jun 3, 2009 at 12:04 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:&nbsp;</span>
>
>             <span id="bugid" class="static"></span>
>
>             &nbsp;&nbsp;&nbsp;
>
>             <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" />
>
>             &nbsp;&nbsp;&nbsp;
>
>             <span id="short_desc_err" class="err">&nbsp;</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
-~----------~----~----~----~------~----~------~--~---

Title: KiranD
Description:           

Attachment: Kirand.rb
Description: Binary data

Reply via email to