Test is not working on virtual machine

Ask general questions here.
Posts: 8
Joined: Mon Oct 19, 2015 4:18 pm

Test is not working on virtual machine

Post by Zhiqiu » Thu Jan 14, 2016 6:46 pm


We have a test suite, it's running fine on the local computer. But when it's running on the virtual machine, the click is not working. It looks like the mouse is moved to the right link and clicked. But for some reason the page is not responding.It happens to a lot of the clicks. We've tried to set Mouse.DefaultClickTime = 300, and other different values, but the clicking problem still exists.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12169
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Test is not working on virtual machine

Post by Support Team » Fri Jan 15, 2016 2:13 pm

Hello Zhiqiu,

Unfortunately, it is very difficult to figure out why the click action is not performed successfully.
Often timing issues, e.g., page is not fully loaded or something similar can cause that the browser didn’t recognize click events even if they were successfully executed.

I’d suggest trying one of the following workarounds to solve the issue.

Execute Invoke Action PerformClick
You could use the PerformClick() action to invoke the click event directly on the button without using the mouse. Drag and drop the corresponding item from the repository to the action table and choose Invoke Action -> PerformClick().
perform_click.png (30.54 KiB) Viewed 1420 times
Divide Move and Click action
In order to make sure that the button is focused correctly, please try to execute the mouse actions separately. First, perform the Move to the corresponding element. After that, please execute the Click action.
mouse_move_click.png (4.11 KiB) Viewed 1420 times
Please let me know if one of those workarounds solved the issue.