Thank you, Shweta.
Statement with value works:

$ie.button(:value, "Apply").click

Vladimir

On Mar 30, 9:20 pm, Shweta <nagman...@gmail.com> wrote:
> try with this
> $ie.button(:name,"ApplyAddDocument").click  #try with Value also
> instead of name property
> or
> Watir.autoit.Send('{ENTER}')
>
> On Mar 31, 5:16 am, "vladimir...@hotmail.com"
>
>
>
> <vladimir...@hotmail.com> wrote:
> > I need to select a document by clicking Browse... button.
> > After selecting the file for download, I need to click Apply butoon.
>
> > My code is simple
>
> > # open Choose File Windows dialog box
> >     $ie.file_field( :name, "document" ).set( "c:\\Watir Testware\\Data\
> > \vb.txt" )
> >     $ie.button( :id, "applyButton" ).click
>
> > No complaint, but the button Apply is not clicked.
>
> > I also tried:
> >     $ie.file_field( :name, "document" ).set( "c:\\Watir Testware\\Data\
> > \vb.txt" )
> >     $ie.form(:name, "ApplyAddDocument").submit
> > got the same result.
>
> > Please, help.
> > Thanks,
> > Vladimir Belorusets
> > SQA Manager, Xerox- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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