SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jul 2009
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    QTP open and close a browser immediatly

    Hello,

    I edit a script that open a browser in which Dialog should be present in the aim to save a file with the Winbutton("save").

    The problem I face is like this:
    - Manually when I click the Link("Download CV")it opens a browser with the Dialog and naturally the Winbutton("save").
    - When I run the script, QTP click the Link("Download CV")but it open the Browser and close it immediately, so I see a browser opened and closed as it follows the opening.

    So, could you advice me what can I do to fix it. I send you the part of the code who supposed to open the browser:

    Browser(Brows_3).Page(Page_3).Link("text:=TÚlÚchar ger le CV").WaitProperty "text", "TÚlÚcharger le CV" , 2000

    Browser(Brows_3).Page(Page_3).Link("text:=TÚlÚchar ger le CV").Click

    if Browser("title:=http://recruteurs.apec.fr/download?fileName=.*") _
    .Dialog("text:=TÚlÚchargement de fichier") _
    .WinButton("text:=En&registrer").exist(1)then
    msgbox " yes, exist"
    else
    msgbox "Browser doesn't exist "
    end if

    Dialog("regexpwndtitle:=TÚlÚchargement de fichier") _
    .Dialog("regexpwndtitle:=Enregistrer sous") _
    .WinButton("text:=&Enregistrer").Click

    Browser(Brows_3).Page(Page_3).Link("text:=Retour", "x:=9").Click
    <font color="red"> </font>

  2. #2
    Junior Member
    Join Date
    Jul 2009
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: QTP open and close a browser immediatly

    I work with I.E 6 and Win XP SP2.

  3. #3
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: QTP open and close a browser immediatly


 

 

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 12.50%
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 08:22 AM.

Copyright BetaSoft Inc.