SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Guest

    Browser timeout problem

    After executing a Click() on an HTML image which links to a different site the browser times out: "Internet Explorer cannot open the Internet site...The operation timed out." I cannot duplicate this when moving from site to site manually. This inevitably happens but is inconsistent in its behavior (if I iterate over the test sequence it ocurrs). It also is clear there is some resource contention between the Browser and another app running on the system (e.g. Silk Agent).

    I have tried tweaking the settings for OPT_APPREADY_RETRY, OPT_APPREADY_TIMEOUT, OPT_WINDOW_RETRY and OPT_WINDOW_TIMEOUT but have not been able to effect a change in the behavior. I have tried adding Sleep() statements after the Click() but the timeout appears to take place BEFORE the Sleep() statement executes.

    Environment Config:
    - OS: NT 4.0 (SP4)
    - BROWSER: IE4.01SP1 (No Active Desktop)


    Is there a way to force an agent Sleep() after the execution of the Click() but prior to waiting on the next window?


  2. #2
    Guest

    Re: Browser timeout problem

    Hi,

    You could try checking for the URL text or caption of the browser as it changes from site to site, and waiting on that until it occurs. For example :

    // code above
    w1.w2.w3.click ()

    // do a while loop to wait for something
    while (Browser.Location.GetText () != "http://the.new.site")

    // rest of code

    So the while loop will loop for ever until the URL text changes. You may need to play with this to get it to work, maybe use the caption instead. Add a timeout incase the site is actually down, etc.

    Timing is a bitch with browsers and Silk, check out the browser.inc and explorer*.inc files in Silk dir. There are some methods that you can reference in your code that may help you when working with browsers.

    Cheers!
    -Scott Kavanagh

 

 

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 03:54 AM.

Copyright BetaSoft Inc.