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

Need alternative for MouseClick or Click for ButtonControl

1 Answer 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Naveen
Top achievements
Rank 1
Naveen asked on 11 Nov 2011, 10:24 PM

I have the DOM for a button in the below fashion

<input name="TestButton" class="action-button" id="TestButton" role="button"  type="submit" jQuery15109470652432947769="3" value="Test"/>

Im getting the HTMLInputSubmit control by Findexpression (id="TestButton")

If i perform Click Action it is not working.

Tried HTMLInputSubmit.MouseClick and it works in my local machine

And in my test run, which triggers this in remote machines, this fails to perform MouseClick action.

also tried InvokeScript(JqueryScripts.ClickbyID() with script event type set to OnClick - Not Working

Anybody can shed some light on this ??

1 Answer, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 16 Nov 2011, 12:43 AM
Hello Naveen,

Have you read our article on jQuery Events Not Firing During Test Execution? This may be applicable, however I find it odd that your script works locally yet fails remotely.

Is the remote machine locked during execution? This is problematic for tests that contain real mouse clicks and key strokes. See here for more information.

Here is a work-around to keep an active session running on the execution server. 

Greetings,
Anthony
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Naveen
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Share this question
or