18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Recording click-drag-release
Hi,
I'm quite new at this and can't find a way to record an that performs a mouse click on a certain position in an _div then (while mouse down) drags down to a specifc position and releases.
Any ideas?
Thanks for a great tool!
Best Regards
/ Tommy
I'm quite new at this and can't find a way to record an that performs a mouse click on a certain position in an _div then (while mouse down) drags down to a specifc position and releases.
Any ideas?
Thanks for a great tool!
Best Regards
/ Tommy
Comments
Have a look at _dragDrop http://sahi.co.in/w/_dragdrop and _dragDropXY http://sahi.co.in/w/_dragdropxy APIs
Drag and drop will not be recorded automatically.
Regards,
Narayan
I actually tried dragdrop, but did not get it to work. Probably due to another issue (AJAX-responses and waiting). I can get my tests running if I introduce _wait-statements just about everywhere. Thus, I had high hopes for your latest release. I am working with ZK 3.6 and still need my _wait statements. Anybody else with the same problem?
BR
/ Tommy
Do you mean to say Sahi does not wait for AJAX requests at all? Are you using the 21 Feb 2010 release? It addressed one other condition with AJAX waits and is quite stable right now. If you think this is not the case, we will be happy to fix it for you.
One thing that may be happening is that the AJAX request may be triggered after a timeout in your application. In that case, you could either put a wait in that place, or increase the time between steps from 100ms to 200 or 300ms in sahi.properties.
I would be happy to resolve this for you. You can either post here or email at support@sahi.co.in with your script and a sample URL where we can test this out.
We will make sure you do not need the waits.
Thanks and regards,
Narayan