SPONSORS:






User Tag List

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

    Why does Sync error occurs in the middle of page?

    Hi,

    I could appreciate the script issues that might occur due to the timing, for instance, if the script tries to act on the object that is not loaded.

    In our application, there is a WebList object in the middle of the page in the application, that is, the object is visible right from the time script has accessed the first object of the page.

    Still, the script sometimes does not select the value in this Weblist object and there are no errors thrown. Sometimes, the weblist object is selected but the subsequent actions are are getting performed before the mentioned value in the weblist is selected.

    We execute the script in a remote machine. The above mentioned behavior happens both when the focus is not in the Remote window as well as when the focus is on the Remote window.

    I am not able to understand this scenario!!! Kindly throw some light over this.

    - Devaraj R

  2. #2
    SQA Knight
    Join Date
    Jun 2008
    Posts
    2,555
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: Why does Sync error occurs in the middle of page?

    Is it ajax, and the values in the weblist are still waiting on a database call even after the page loaded?

  3. #3
    Super Member QAGanesh's Avatar
    Join Date
    Sep 2010
    Posts
    1,898
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Why does Sync error occurs in the middle of page?

    This might be due a couple of reasons, one of them being the values in the list being dynamically loaded, other might be the name of the list boz is dynamically changing.

    I think its better to click on the list box, then select the required value and proceed further.
    Thanks,
    Ganesh Iyer
    Winds of Change

  4. #4
    Member
    Join Date
    Dec 2009
    Posts
    261
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Why does Sync error occurs in the middle of page?

    Hi,

    If the values in the Weblist are not loaded at the appropriate time, then QTP would have thrown the error that "Cannot find the specified value", right?

    But, in my scenario, no such errors. The "Browser().Page().WebList().Select "<<value>>" statement is executed and QTP proceeds on to execute the subsequent statements without throwing any error.

    The behavior is as though the "Select" event is not passed from QTP to the "Weblist" control.

    Kindly let me know about this.

    - Devaraj R

  5. #5
    Super Member QAGanesh's Avatar
    Join Date
    Sep 2010
    Posts
    1,898
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Why does Sync error occurs in the middle of pa

    Try to click on the weblist first prior to selecting the value. I am sure try invoking either a mouse click on the weblist using the fireevent and then select the value.
    Thanks,
    Ganesh Iyer
    Winds of Change

  6. #6
    Member
    Join Date
    Dec 2009
    Posts
    261
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Why does Sync error occurs in the middle of pa

    Hi,

    I will try to do that to fix it up.

    But any idea on why the issue happens in the first place?

    - Devaraj R

  7. #7
    Super Member QAGanesh's Avatar
    Join Date
    Sep 2010
    Posts
    1,898
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Why does Sync error occurs in the middle of pa

    I am not sure, but may b there is some specific action associated to the list, just check the source.
    Thanks,
    Ganesh Iyer
    Winds of Change

  8. #8
    Member
    Join Date
    Dec 2009
    Posts
    261
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Why does Sync error occurs in the middle of pa

    Hi,

    I had already checked on that. There is nothing specific about this.

    This behavior is not repeatable. That is next time, the appropriate value is selected.

    - Devaraj R

  9. #9
    Member
    Join Date
    Dec 2009
    Posts
    261
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Why does Sync error occurs in the middle of pa

    Hi,

    I was quite curious on how it is possible that the select event on the weblist does not select the necessary value over there when everything is in place!!!

    - Devaraj R

  10. #10
    Advanced Member
    Join Date
    Nov 2007
    Location
    India
    Posts
    686
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Why does Sync error occurs in the middle of pa

    Use WebList("").Click before executing WebList("").Select "Value".

    It will set focus on the weblist and hopefully will select the value.
    Kind regards,
    Anand Tambey

    RSS Feed : Break To Make it Better
    A Lazy person could be the best automation professional, if he is not lazy in implementing his ideas to reduce his work. ~Anand Tambey

 

 

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 10.00%
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 06:03 AM.

Copyright BetaSoft Inc.