This is a migrated thread and some comments may be shown as answers.

Click() is not working in pop-ups

4 Answers 95 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kumar
Top achievements
Rank 1
Kumar asked on 14 Oct 2010, 02:26 PM
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

4 Answers, 1 is accepted

Sort by
0
Keaegan
Telerik team
answered on 29 Oct 2010, 11:23 PM
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
0
wilfredo
Top achievements
Rank 1
answered on 14 Jun 2011, 05:51 AM
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...
0
Stoich
Telerik team
answered on 21 Jun 2011, 12:43 PM
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
0
wilfredo
Top achievements
Rank 1
answered on 22 Jun 2011, 02:57 AM
Yat it did work for me... thank you :)
Tags
General Discussions
Asked by
Kumar
Top achievements
Rank 1
Answers by
Keaegan
Telerik team
wilfredo
Top achievements
Rank 1
Stoich
Telerik team
Share this question
or