I would suggest you to use AutoIt software for getting the id of Apply
button. I think you are not passing the right id, that's why it id not
getting clicked...
On Jun 16, 2012 12:53 AM, "tkp" <[email protected]> wrote:

>
> I am using ruby 1.9 and watir 3.0.0. My problem still persists!
>
> On Tuesday, 31 March 2009 09:50:07 UTC+5:30, Shweta 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, "[email protected]"
>> <[email protected]> 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
>
>  --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to