SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Jun 2001
    Location
    Tampa, FL, USA
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    BuiltinClose not working

    First of all let me begin by stating that I have read the following question and everything suggested in this message did not work
    <a href=http://www.qaforums.com/Forum1/HTML/001988.html>http://www.qaforums.com/Forum1/HTML/001988.html</a>
    I have built the custom close method and it works when i run it manually but when i run the script and the recovery system takes over the window will not close and the script goes into an infinite loop doing win.SetActive then win.BuiltinClose()
    Any help is appreciated.



    ------------------

  2. #2
    Senior Member
    Join Date
    Aug 1999
    Location
    Cambridge, UK
    Posts
    470
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: BuiltinClose not working

    If you have defined your own Close() method for the window, it shouldn't be calling win.BuiltInClose() at all (unless you call derived::Close() in your custom Close() method), as far as I know. It is worth checking that silktest is identifying your window correctly - if it is misidentifying it, then you will need to alter your tags to make sure that it correctly identifies each window in the recovery system.

    ------------------

  3. #3
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: BuiltinClose not working

    Vince is right. Use the debugger to step through recovery and see what Close () code is being executed and where its being called.



    ------------------
    John W Green
    jwgreen@automationexpertise.com
    http://www.automationexpertise.com

  4. #4
    Junior Member
    Join Date
    Jan 2001
    Location
    New York, NY, USA
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: BuiltinClose not working

    The default recovery system won't close a window if the window's [X] button or Close item in the System menu are disabled/ignored and the button(s) to dismiss the window are not immediate children of the window. For example, given window W, if W.Cancel exists then the recovery system will close it, if W.wContainer.Cancel or some variation exists then the window won't be closed. I hacked around and instrumented the DefaultBaseState() appstate in defaults.inc. If what I described applies to your situation, then you may have enough to go on to implement a cleaner solution.

    ------------------

  5. #5
    Junior Member
    Join Date
    Jun 2001
    Location
    Tampa, FL, USA
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: BuiltinClose not working

    Thanks, but that is not the case. I was able to solve the problem by redeclaring the window, I guess I had some stuff in there that the recovery system did not like.

    ------------------

 

 

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 02:33 PM.

Copyright BetaSoft Inc.