18 January 2026:


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.

how to change mouse location using sahi

gaveyomgaveyom Members
edited June 2013 in Sahi - Open Source
Hi,

how to change the location of mouse using sahi script.

Is there any option like this in sahi

I required this because, my script will run upto 2 hrs, while executing my script it will take screen shots, after 20 mins all the screen shots is displaying as black screen

I think this is happens becoz system is going to ideal state, so it is taking black screen's

if we can move mouse location then system will not go into ideal state

any help pls

Answers

  • Preventing system shutdown is not possible as far as I know. You may want to run your 2 hour script on a virtual display or change the systems "power saving" settings.
  • Hi Gaveyom,

    You can try the following not-so-well known trick to circumvent the issue that you're having.

    Open any AVI file in the windows media player and play it loop (turn repeat on). By default, the windows media player will suppress the screen saver during playback.

    Tested on Windows XP and on Windows 7.

    Let me know if it works.

    HTH
    best,
    agile_tester
Sign In or Register to comment.