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

2 posts, 0 answers
  1. Limu
    Limu avatar
    14 posts
    Member since:
    Oct 2010

    Posted 04 Nov 2010 Link to this post


    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.

  2. Keaegan
    Keaegan avatar
    126 posts

    Posted 05 Nov 2010 Link to this post

    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?

    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
Back to Top