SPONSORS:






User Tag List

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

    How to approach the problem of same caption to parent and child window

    Currently we are working on Rational robot automation and we are facing the following problem while executing.

    1.In the application,Both parent window and child window is having same caption.
    'Selecting the Status to Won
    Window SetContext, "Caption= ABC - " & IETitle, "" ' Parent Window
    ComboBox Click, "Name=select_0", ""
    ComboListBox Click, "Name=select_0", "Text=Won"
    SQALogMessage sqaPass, "Step3, Changing the Status to Won Passed",""

    PushButton Click, "Name=Submit23"

    Window SetContext, "Caption=" & IETitle, ""
    PushButton Click, "Text=OK"

    Window SetContext, "Caption=ABC - " & IETitle, "" ' Parent Window
    HTMLLink Click, "HTMLId=feedback_0", ""
    SQALogMessage sqaPass, "Step5, Clicking on Feedback Link Passed",""

    delayfor (10000)
    Window SetContext, "Caption=ABC - " & IETitle, "" ' Child Window
    Browser NewPage,"HTMLTitle=ABC","" ' Error is thrown here.


    2.While running the script, child window is getting automatically minimized and focus is on Parent Window...
    Rational is trying to perform the action of Child Window on the Parent Window and resulting - Unexpected Window error and Fail

    Client is not willing to change the captions of the windows and in respective windows's properties, there is no index or level difference.

    Can you please come up with any solution for handing this issue without changing the window caption ASAP.

    Note: for security purpose, we have put the caption as ABC.
    Greetings,
    Satish Netala

  2. #2
    Senior Member
    Join Date
    Oct 2001
    Location
    Presov, Slovakia
    Posts
    201
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to approach the problem of same caption to parent and child window

    Did you try to specify in recMethod that it is child window "ChildWindow" ?
    For more info look at help for command "Window".
    In your case it should be:

    Window SetContext, "Caption=ABC - " & IETitle+";ChildWindow", ""
    If you want to give somebody a fish, you'll do better if you teach him how to catch it.

    Marek Fric
    ICQ# 114486928

 

 

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 12:19 PM.

Copyright BetaSoft Inc.