I use Kantu and Xclick in VM (Virtualbox) without ant problem, you can leave the windows of VM not minimized and open over it the new windows and Kantu working like a charms.
Xclick require focus if you lost the focus do not work.
Test cases are breaking and not able to perform XClick.
This sounds strange. As @newuserkantu mentioned, Kantu runs inside a virtual machine without problems. But important: Make sure that the screen of the VM is not locked and the screen saver is not turned on. XClick can not control the mouse if the desktop is locked (no software can do this, since then the desktop is no longer active).
Thanks Admin. In my case Desktop is unlocked and and user is logged in for VM. However screen is minimized for VM but still it is not able to perform XClick as Mouse is also enabled in my case. As you have reported this is an issue, please let us know once this issue gets resolved. Many Thanks in advance.
I have already added this command to take browser on front once application is launched on chrome.
However my issue is
My VM is created on cloud and tests are not running on my screen. It automatically unlock the VM and starts the execution. does Kantu supports XClick in this scenario ?
Also if Kantu does not support XClick when test cases are running on cloud VM which is unlocked and browser on front… then how to integrate Kantu Visual UI Test cases in CI\CD Pipeline ?
It automatically unlock the VM and starts the execution. does Kantu supports XClick in this scenario ?
Yes!
Also if Kantu does not support XClick when test cases are running on cloud VM which is unlocked and browser on front…
Well, Kantu does support XClick in an unlocked VM.
The question is why it does not work on your machine.
So everything works while you are watching it, and fails when you leave it unattended? Maybe there is a screensaver that kicks in after a while?
For example, I often run Kantu macros in a VBOX, and then move the VBOX to the side of my desktop, so I can work on something else. And all XClicks macro run just fine in this case.
So everything works while you are watching it, and fails when you leave it unattended?
– Yes this is what happening with my test cases when am running on VM.
Maybe there is a screensaver that kicks in after a while? - No Screen saver as such working there.
For example, I often run Kantu macros in a VBOX, and then move the VBOX to the side of my desktop, so I can work on something else. And all XClicks macro run just fine in this case.
– Yes Test cases are running in VBOX only and if VBox is closed or minimized then all the remaining test cases are getting failed
We can not recreate the issue and it seems to work fine for everyone else. So something specific is going wrong on your system.
If you have an Enterprise license please contact us directly. We can then arrange a remote support session where our developers directly look at the problem.
Ok, what code do you use to connect to it. Im sorry I am new to virtual box
Maybe we can discuss over email or phone? my email is piterat@gmail.com.
We are trying to achieve the same thing i believe, it would be great to work together or at the very least if you could help me
So to understand clearly… do I need to always remain remotely logged in into my test server for Kantu tests to pass?
I’m facing this problem too. My Kantu tests use XClick. They work perfectly fine when I’m remotely logged in to the test server - but fail at the XClick step when I disconnect from the test server.