SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Junior Member
    Join Date
    Aug 2008
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    QTP - windows \'File Save\' Dialog not visible

    Hi all,

    On recording a particular Web application with QTP,Have came across a problem for which I havent found a solution so far..


    The script of importance is as follows:

    Browser("Personalized Start Page").Page("XYZ").Frame("mainFrame_4").Link("addr ess.csv").Click
    Browser("Personalized Start Page").Page("XYZ").Sync
    Dialog("0% of dms.php from XYZ-").Dialog("File Download").WinButton("Save").Click

    My problem is that on recording the application with QTP and clicking the "address.csv" link another browser window comes up temporarily followed by the Windows "FileSave" dialog.The browser window which came up closes down when the Windows "FileSave" dialog is visible and I save the file to a windows location.

    On the "Record and Run" settings under Qtp,have activated settings for web and windows applications.



    But when I run this recorded script,and after the "address.csv" click,The browser window comes up and goes down,No Windows "FileSave" dialog comes up and the QTP shows the error Dialog("0% of dms.php from XYZ-") object is not found,though this object is there in the repository.

    Have tried putting the Dialog("0% of dms.php from XYZ-").Exist property.But the "Exist" property is not recognised by the dialog at all.

    Any help in this direction is appreciated..

    Thanks in advance
    J

  2. #2
    Senior Member
    Join Date
    Jul 2007
    Location
    Amman, Jordan
    Posts
    281
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP - windows \'File Save\' Dialog not visible

    question of concern is why isn't the FileSave dialog coming up after the browser goes down? if it is not coming up then defiantly QTP is not going to find it.

    Instead of Exist try WaitProperty on the save button
    _______________________________________________
    1. LR Version: LR 9.5
    2. protocol: Web (HTTP/HTML)
    3. HTML-Advanced with URLs: No
    4. URL mode: N/A
    5. LR FP: N/A
    6. VuGen Recording: New Engine
    7. Web & Multimedia 1700 - Oracle E-Business 100
    8. support/maintenance contract active: yes
    9. Windows 2003 R2
    10. Did not file

  3. #3
    Junior Member
    Join Date
    Aug 2008
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP - windows \'File Save\' Dialog not visible

    Tried that.It comes up with an error -parent not there.
    Obviously the "File Download" DIALOG is not at all coming up,which is the parent of "save"

  4. #4
    SQA Knight
    Join Date
    Jul 1999
    Location
    Grand Rapids, MI
    Posts
    3,727
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP - windows \'File Save\' Dialog not visible

    I believe I have had this problem in the past, in that sometime you have to click the button twice (sigh... but not always) using QTP. So I wrote a Wait look (with a timeout of some sort) and then enter the loop, click the button, wait one second and if the dialog is present exit the loop, else dec the timeout counter and click again.

    -Hope this helps, Terry

  5. #5
    Junior Member
    Join Date
    Aug 2008
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP - windows \'File Save\' Dialog not visible

    Hi ,


    Have observed another thing.Please see attached image.
    While recording this application,after I get the "FileDownload" dialog ,and If i move this dialog I could see the other "
    Dialog("0% of dms.php from www.orange-")" just behind it....



    Browser("Personalized Start Page").Page("Orange Shareserve 3.6").Frame("mainFrame_4").Link("address.csv").Cli ck
    Browser("Personalized Start Page").Page("Orange Shareserve 3.6").Sync
    wait(2)
    Dialog("0% of dms.php from www.orange-").Dialog("File Download").WinButton("Save").Click

    Could that be the problem....

    Waiting for your Reply

    Thanks
    J
    Attached Images Attached Images

  6. #6
    Junior Member
    Join Date
    Aug 2008
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP - windows \'File Save\' Dialog not visible

    Hi Guys,

    Thanks for all the help.Eventually the dialog was visible when I added additional properties to the dialog like title,Name etc...

    Thanks
    Jen

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.11%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:30 AM.

Copyright BetaSoft Inc.