Hi Peter,

a = $IE0.text_field(:id,'field1').value

$IE0.text_field(:id,'oherField').set(a)

good luck,
Darryl

On Oct 9, 4:30 am, Peter Kras <zhy...@gmail.com> wrote:
> Hi!
>
> I need to check such situation:
>
> I have text field with id="field1" that contains text '250M'. When you
> click on it - only '250' becomes highlighted - special logic.
>
> Testing it with watir:
>     $IE0 = Watir::IE.new
> ..........................................
>     $IE0.text_field(:id,'field1').focus # this works
>
>     $IE0.send_keys('^{c}') # copies, but txt in url field of browser
>
>     $IE0.text_field(:id,'oherField').focus  #doesn't work
>
>     $IE0.send_keys('^{v}')
>
> But the problem is that focus in URL field of browser (IE7).
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to