I have the same issue and this fix didn't work for me. The link gets 
pressed and the window opens and close instead of asking me if I would like 
to save it. When I do it manually, the file download dialog box works fine. 

On Sunday, May 1, 2011 2:27:21 PM UTC-4, Roman Zilber wrote:
>
> It is not, that you should... If click doesn't work, it may help. You need 
> to know Javascript a bit...
> if you have a normal link .click() will work, if link look like:
> <div class='fake_link' onclick='some_javascript_function("with_params");' 
> onmouseover='otherfunction()' onblur='' ....>Link text</div>
> FireEvent triggers the event handler function.
>
>
> On Sun, May 1, 2011 at 1:11 PM, Shanmukha Bollapragada <[email protected]
> > wrote:
>
>> Can you pls explain....why I should use FireEvent as opposed to .click on 
>> that link? Is FireEvent gaurenteeing that the file download pop will show 
>> up ?????
>>  
>> Thank you
>> Shan
>>
>>
>>  
>> On Sun, Apr 24, 2011 at 9:33 PM, Roman Zilber <[email protected]> wrote:
>>
>>> You need to use obj.FireEvent("onclick") 
>>>  
>>>
>>> On Fri, Apr 22, 2011 at 10:45 AM, Shanmukha Bollapragada <
>>> [email protected]> wrote:
>>>
>>>>   
>>>>
>>>> On 4/22/2011 10:28 AM, Shanmukha Bollapragada wrote: 
>>>>
>>>> Once again:I have a qtp script which will click on 2 links (www link 
>>>> and ftp link) and check for file download dialog box.  If it does show the 
>>>> pop up then my script works fine. However, sometime if this link is 
>>>> pointing to some file like abcd.xml then when i click on it it just opens 
>>>> that in the browser, it doesn't show the file download dialog box.  How to 
>>>> change the settings of the IE so that when i click on any link it MUST 
>>>> show 
>>>> the file download dialog box. 
>>>>
>>>> Sorry didn't mention that I have already tried "Right Click -> Save As" 
>>>> option. But this will not work for me because the save as is greyed out
>>>>
>>>> Attached is the screenshot. I have also pasted a screenshot below
>>>>
>>>> The links that I am trying to verify are www and ftp
>>>>
>>>> www - 
>>>> http://downloadxxxx.xxx.xxx.xxx.com/download/1234567/filename.a.b.c.d
>>>>
>>>> ftp - ftp://ftpxxxxx.xxxx.xxxx.xxxx.com/1234567/filename.a.b.c.d
>>>>
>>>> when you hover your mouse over www and ftp link you will see something 
>>>> like this
>>>> javascript:helpOpen('
>>>> http://downloadxxxx.xxx.xxx.xxx.com/download/1234567/filename.a.b.c.d')   
>>>> - www
>>>> javascript:helpOpen('
>>>> ftp://ftpxxxxx.xxxx.xxxx.xxxx.com/1234567/filename.a.b.c.d')  -  ftp
>>>>
>>>> HTML source is <a href="javascript:helpOpen('
>>>> ftp://ftpxxxxx.xxxx.xxxx.xxxx.com/1234567/filename.a.b.c.d')">ftp</a>
>>>> HTML source is <a href="javascript:helpOpen('
>>>> ftp://ftpxxxxx.xxxx.xxxx.xxxx.com/1234567/filename.a.b.c.d')">www</a> 
>>>>
>>>>
>>>>
>>>>
>>>> On 4/22/2011 12:10 AM, Serene Tan wrote: 
>>>>
>>>> can you attach screenshots
>>>>
>>>> ------------------------------
>>>> Date: Thu, 21 Apr 2011 16:22:24 -0400
>>>> From: [email protected]
>>>> To: [email protected]
>>>> Subject: Force file download dialog box in IE
>>>>
>>>> Hi Guys,
>>>>
>>>> I have a qtp script which will click on a link and check for file 
>>>> download dialog box.  If it does show the pop up then my script works 
>>>> fine. 
>>>> However, sometime if this link is pointing to some file like abcd.xml then 
>>>> when i click on it it just opens that in the browser, it doesn't show the 
>>>> file download dialog box.  How to change the settings of the IE so that 
>>>> when i click on any link it MUST show the file download dialog box. 
>>>>
>>>> Thank you
>>>> Shan
>>>>
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google
>>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>>> group.
>>>> To post to this group, send email to [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/MercuryQTP?hl=en -- 
>>>> You received this message because you are subscribed to the Google
>>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>>> group.
>>>> To post to this group, send email to [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/MercuryQTP?hl=en 
>>>>
>>>>  -- 
>>>> You received this message because you are subscribed to the Google
>>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>>> group.
>>>> To post to this group, send email to [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/MercuryQTP?hl=en
>>>>
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google
>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>> group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/MercuryQTP?hl=en
>>>
>>
>>
>>
>> -- 
>> -SHAN
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> "QTP - HP Quick Test Professional - Automated Software Testing"
>> group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/MercuryQTP?hl=en
>
>
>

-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

Reply via email to