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.
PID from .sah
Hi!
Is it possible somehow to get PID of the browser process where sahi script running? I see in sahi proxy log that ProcessHelper operates with some PID.
Is it possible somehow to get PID of the browser process where sahi script running? I see in sahi proxy log that ProcessHelper operates with some PID.
Comments
It is not exposed to script. Any reason why you need it?
Regards,
Narayan
Since I can't just get make screenshoot with java robot (cuz our browser may be hided with other browser), I write a small program on C++ - using WinAPI I get window handler, then rendered bitmap content from it, and save it to file. It is possible to make video the same way.
To get correct window I need PID.
In java I'll write package that will send PID and path to screenshoots storage. Than I'll include this package in my test script.
How I can add lets say _sahi.PID to injected script?