SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Dec 2004
    Posts
    45
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Have you encountered this

    Have any of you encountered this problem
    Sometimes your web page goes faster and the script doesn't recognize some buttons which it usually works properly other times...

    well i just found a solution to this one today..
    Many of you might know this ,but to those who doesn't..

    just add this after every click of a page
    Browser("browsername").Page("pagename").sync

  2. #2
    Senior Member
    Join Date
    Jun 2004
    Location
    Miami,FL
    Posts
    949
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Have you encountered this

    I encountered the same problem but I solve it in a different way
    just go to the expert view and add this VB command before the button/page/...etc.
    wait(5)
    this will make your QTP slow down for 5 seconds
    you can try it!
    Thank you,
    Nadim.
    "I realize it's an error, but no one is going to try to do that!"
    From "Top 10 Stupid Comments from Developers".

  3. #3
    Member
    Join Date
    Aug 2000
    Posts
    279
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Have you encountered this

    Rule of thumb #1: Never use wait statements. What if the app is unusually slow? Your 5 second time will not be enough. Replace the sync function wherever there's a wait statement and your life will be much better. Believe me, I've been there.

  4. #4
    Senior Member
    Join Date
    Jan 2005
    Location
    VA
    Posts
    237
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Have you encountered this

    I believe the .sync is the better way for page object.

    But, unlike page object, window object doesn't support this method. Am I right on this?
    Regards!

  5. #5
    Senior Member
    Join Date
    Jan 2000
    Location
    USA, CA
    Posts
    1,998
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Have you encountered this

    Also, WaitProperty Method can be used for synchronization.

    From QTP Help:
    Waits until the specified object property achieves the specified value or exceeds the timeout before continuing to the next step. Returns TRUE if the property achieves the value, and FALSE if the timeout is reached before the property achieves the value.
    y = Window("Test").WaitProperty("enabled", true, 3000)

    This method can be used for Standard Window and for Browser. It works much better then Sync method.

    Happy testing,
    Janna

 

 

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 9.38%
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 11:56 PM.

Copyright BetaSoft Inc.