SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Apr 2007
    Location
    AP,India
    Posts
    63
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Script is not handling the popup window

    Hi Every One,

    The script is handling the pop Up window, it escaping the popup
    ---------------------------------

    Set App=createobject("QuickTest.Application")
    App.visible=true
    App.Test.Settings.run.OnError="Dialog"
    -------------------------------------------------------
    Is there any mistake in this

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

    Re: Script is not handling the popup window

    can i know it detaily

  3. #3
    Member
    Join Date
    Dec 2007
    Posts
    63
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Script is not handling the popup window


    Hi Hyd Raj,

    The code snippet you have written sets the test settings to show a pop-up message when an error occurs while running
    Its not meant to handle the Pop-up
    Can you be more elobrative as to what is the objective...

    Thanks,
    Vivek

  4. #4
    Member
    Join Date
    Apr 2007
    Location
    AP,India
    Posts
    63
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Script is not handling the popup window

    the reqirement is to handle the java script popup window which opens when email/password filed is blank, by clicking ok button on the popup window
    could you please send me required the code for qtp

  5. #5
    Senior Member
    Join Date
    Feb 2006
    Location
    Bangalore
    Posts
    593
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Script is not handling the popup window

    Are you biased against recover scenario?
    Vengat Ramanan.R

  6. #6
    Member
    Join Date
    Feb 2007
    Location
    London
    Posts
    391
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Script is not handling the popup window

    you could use a recovery scenario, or you could put in a check using an if statemement. e.g

    if theJavaDialog.exist(5) then
    'handle it
    end if

    what you will need to do is record clicking the dialog to find out how QTP recognises "theJavaDialog". Should be fairly straight forward, providing of course that QTP reconginses the dialog

  7. #7
    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: Script is not handling the popup window

    Your problem and the code you are using has no relation at all. There was a post discussing the same thing few days back. Search that post and see if it does the trick for you.

  8. #8
    Member
    Join Date
    Apr 2007
    Location
    AP,India
    Posts
    63
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Script is not handling the popup window

    I got it....
    -------------------------------
    Browser("title:=fhrt Web").Dialog("nativeclass:=#32770").Highlight
    '
    Browser("title:=fhrt Web","Index:=0").Dialog("nativeclass:=#32770").win button("text:=OK").click
    ------------------------------


    Thnx,
    Rajesh

 

 

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 9.38%
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 06:24 AM.

Copyright BetaSoft Inc.