SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Sep 1999
    Posts
    51
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    A question on using Timers

    I have a set of code like this:

    This is a web application. My question is, before executing the TimerStop statement, does Silk make sure the previous Click() was completed successfully? What I mean is that does it make sure the page after Click() got loaded completely before stopping the timer?

    Thanks for your comments.

    Sam


  2. #2
    AJ
    AJ is offline
    Moderator AJ's Avatar
    Join Date
    Jun 1999
    Location
    San Jose, CA
    Posts
    1,691
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A question on using Timers

    In short, Yes
    AJ Alhait
    BetaSoft Inc.

  3. #3
    Member
    Join Date
    Sep 1999
    Posts
    51
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A question on using Timers

    I don't think Silk waits for one line of code to complete before going to the next line. In fact, I was going thru some Segue's tech support emails. I had a similar problem that time and their response was "silk does not wait for pages to be fully loaded before executing next line of code". In such a case, any tips how to handle the timer issue? I am giving another set of code here to make my problem clear:

    One option is I can add Browser.WaitforReady() before the TimerStop. But this gives a wrong timer value because BrowserWaitforReady itself takes a lot of time to execute.

    Any tips would be greatly appreciated!

    Sam


    [This message has been edited by sampath (edited 12-28-1999).]

    [This message has been edited by sampath (edited 12-28-1999).]

  4. #4
    Member
    Join Date
    Jul 1999
    Location
    Raleigh- North Carolina
    Posts
    30
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: A question on using Timers

    Is this option set in Option-Agent-Verification....

    Agent.SetOption (OPT_VERIFY_APPREADY, TRUE)

    If not, set it and try again.

    If so, I've seen some events related to the Browser class that seems to be async (like, TypeKeys ()..). Maybe u can use my workaround.

    What u can do is monitor the Browser.Stop button with the IsEnabled () function.
    Once the this button is not enabled, it means that the page was fully loaded.

    And u can go on with your script.

    Hope it can help.

    Mauro Almeida


 

 

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:34 AM.

Copyright BetaSoft Inc.