SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Guest

    Identifying the same JavaDialogBox with different parents

    I have this situation:
    In my declaration I have simiar java dilog box with different parent windows, I modified the tag of the dialog to use the one instance of dialog for all parents.
    Modified Tag :
    [-] window JavaDialogBox OWBWarning
    [ ] tag "~ActiveApp/[JavaDialogBox]*OWB Warning"
    But for some reason it does work some times and it does not work some times when I try to refer OWBWarning.OK.Click(). I get the error "JavaDialogBox]*OWB Warning" not found
    Is there any other approach for this problem


  2. #2
    Member
    Join Date
    Jan 2001
    Location
    Fairfield, CT, USA
    Posts
    86
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Identifying the same JavaDialogBox with different parents

    There are three point to check this problem, may be more but try with these one by one.
    1. Try to increase window time-out in Agent/Option.
    2. Use Verify (), set time in function.
    3. Try to turn on debugging option in Option/Runtime (Print agent call and print tags with agent calls). Compare all spelling with identifier.

    I hope it will work.

    [This message has been edited by PalS (edited 01-25-2001).]

  3. #3
    Senior Member
    Join Date
    Mar 2000
    Location
    pisctaway, NJ USA
    Posts
    188
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Identifying the same JavaDialogBox with different parents

    Are you using JAVA?
    What version of SILK you
    using?

    There are known issues with certain
    versions of Silk
    Anthony

  4. #4
    Guest

    Re: Identifying the same JavaDialogBox with different parents

    I am using SilkTest 5.0.2/5.0.3 and it is java application.
    Thanks
    Vishnu

  5. #5
    Senior Member
    Join Date
    Aug 1999
    Location
    MA
    Posts
    129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Identifying the same JavaDialogBox with different parents

    When I have a dialog, with multiple parents, I create a winclass for the dialog, and tag only the dialog (don't need the /.. syntax when doing this)

    I then instantiate an instance of the class, under the appropriate parent locations in my window declaration file(s).

    This way I can put methods in the class to Invoke(), Dismiss(), and consolodate the code, and the objects. New methods can be added and exposed to any place in the code where the class is called, makes it easy to extend functionality.

    Sounds like you have an opportunity to try this out, to save the headache of copy / paste syndrome, or making multitags and losing some of the error trapping you can get with specific tag.

    [This message has been edited by styler (edited 01-26-2001).]
    Steven Tyler
    Manager - Performance Engineering

    Kronos Incorporated
    tel: +1 978 947 4219

  6. #6
    Guest

    Re: Identifying the same JavaDialogBox with different parents

    Thanks Styler,
    I actually did the same thing for the dialogs where there is a possiblity to extend the functionality and writing more methods.But I see no benifit writing class for the error dialgs where you have only Dismiss() and Invoke() methods and no other functionality will be addressed separately for each instance of the dailog.

  7. #7
    Junior Member
    Join Date
    Jan 2001
    Location
    Boston, MA, US
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Identifying the same JavaDialogBox with different parents

    Styler,

    I take a very similar approach in designing classes that contain methods for manipulating themselves, I find it works out well and makes for clean looking code too

    In response to the original question, I've run across this before, where the error doesn't always occur on every run. It sounds like setting the Agent Timeout value higher might do it, but I rely on a little function I wrote that runs a loop pounding the window.exists() method for the object over a specified amount of time. It's not the most elegant fix, but it always gets the job done.

    If you want I can send you the code

    Later,
    Bob

    B.Wessen@customerdialogue[noSpam].com
    (obviously omit the [noSpam])
    _________________________
    Bob Wessen
    QA Engineer/Developer
    Customer Dialogue Systems
    www.assetplanner.com
    www.customerdialogue.com
    B.Wessen@customerdialogue.com
    _________________________

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 07:23 AM.

Copyright BetaSoft Inc.