SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Jan 2008
    Location
    North Carolina
    Posts
    131
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    BrowserSynchronizationTimeOut Vrs AttachTimeOut

    I know that the AttachTimeOut sets the time out for the window and that you can use the tpAttachWait to wait for the time set (by AttachTimeOut) to check for a window being available.

    Is there a simular property that I can use with BrowserSynchronizationTimeOut. I need to be able to use a .Exists to check to see if a browser object is available.
    don, CSTP, QAD/TP user since 06
    Test Partner 6.3; QAD 6.1; QADLoad 5.9

  2. #2
    Senior Member
    Join Date
    Jun 2002
    Location
    farmington hills, MI, US
    Posts
    713
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: BrowserSynchronizationTimeOut Vrs AttachTimeOut

    BrowserSynchronizationTimeOut is the time TP will wait for the browser busy state.

    If you are trying to see if the browser actually exists than you need to use the tpAttachNoWait flag to avoid a playback error when the browser does not actually exist.

    If you are trying to see if the browser is busy then there are two reliable ways that I can think of. The first is that you have to instantiate an instance of the browser so that you can access it's properties. One of the properties of an IE object is "Busy" which returns a bool as to if the browser is busy or not. IE requires that a calling object must have instantiated it.

    The second which may be a little easier for you is to use the DOM. Using any HTML object you can get a document which allows you to get the "ReadyState" as in the following which uses a referrence to the Microsoft HTML library.

    <font class="small">Code:</font><hr /><pre>
    Dim hb As HTMLButtonElement
    Dim doc As HTMLDocument

    Set hb = HTMLButton("Name=textcont").Object
    Set doc = hb.Document

    MsgBox doc.ReadyState
    </pre><hr />

    Edited because of my awful writing skills [img]/images/graemlins/frown.gif[/img]

 

 

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 04:26 PM.

Copyright BetaSoft Inc.