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

HtmlInputButton.Click() and HtmlInputButton.MouseClick() statements making the application hang

1 Answer 85 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Limu
Top achievements
Rank 1
Limu asked on 04 Nov 2010, 07:51 PM
Hi,

I have used HtmlInputButton.Click() method to click a button and do a page submit in my application automation. It was working till recently. But now when that statement is executed it clicks the button but the page doesnt get submitted. It kind of hangs and keeps loading the page. The execution of code line seems to be completed because the control actually shifts to the next line of code. But the application submit doesnt complete. When I try the same action in the application manually it works fine.
Is there any bug in artoftest submit functions? Because I have not changed my code.

Thanks

1 Answer, 1 is accepted

Sort by
0
Keaegan
Telerik team
answered on 05 Nov 2010, 09:15 PM
Hello Shwetha,

In some cases it is necessary to use .mouseclick() instead of .click() in order to get the intended response. Change the HtmlInputButton.Click() to HtmlInputButton.MouseClick() and re-test the scenario.

The .click() sends a "click" command to the DOM, whereas the .MouseClick() simulates a real mouse click. If you use .MouseClick() for this instance are you still experiencing the issue?

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
Tags
General Discussions
Asked by
Limu
Top achievements
Rank 1
Answers by
Keaegan
Telerik team
Share this question
or