Click() is not working in pop-ups

5 posts, 0 answers
  1. Kumar
    Kumar avatar
    12 posts
    Member since:
    Sep 2010

    Posted 14 Oct 2010 Link to this post

    Hi,

    I am trying to open one pop-up by clicking a link by click method  my script is hanging but when i use mouseclick() method it is working fine. Can any body tell me the reason ?.

    Thanks in advance.

    Regards
    Kumar

  2. Keaegan
    Admin
    Keaegan avatar
    126 posts

    Posted 29 Oct 2010 Link to this post

    Hello Kumar,

    The reason that the feature works when run with mouseclick() and not click() is the following:

    When you use click(), it will bring up a modal dialog. Since the modal dialog is open, the click() is hung due to the modal window. Since the command never returns/closes, it will cause the script to hang.

    Currently (as you found), the workaround for this is to use the mouseclick() command. When you use mouseclick(), the command will return/close regardless of the modal dialog, effectively removing the barrier you are running into.

    We are aware of this facet, but do not currently have an ETA for when this would be changed. For now, keep using the work-around you found.


    Regards,
    Keaegan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. wilfredo
    wilfredo avatar
    13 posts
    Member since:
    Jun 2011

    Posted 14 Jun 2011 Link to this post

    what is the work around for this one... click() hangs up while mouseclick() continues the test but can't click the control.

    I try to use the mouselick(leftclick, int x , int y) and it's working...
  4. Stoich
    Admin
    Stoich avatar
    1 posts

    Posted 21 Jun 2011 Link to this post

    Hello Wilfredo,
        is it possible for you to use mouselick(leftclick, int x , int y) as a workaround since you state it works?

    Regards,
    Stoich
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. wilfredo
    wilfredo avatar
    13 posts
    Member since:
    Jun 2011

    Posted 21 Jun 2011 Link to this post

    Yat it did work for me... thank you :)
Back to Top