gaozhao1989 / pyjab

Python implementation for Java application UI automation with Java Access Bridge
GNU General Public License v2.0
49 stars 20 forks source link

Issue in click(True) Function when run from Jenkins #68

Open nam212121 opened 1 year ago

nam212121 commented 1 year ago

When I run the test locally from the machine , everything works fine but when I use Jenkins to run the testcases, I get exception on click(True) function (jabelement.py line 635) File "C:\Test\Python38\lib\site-packages\pyjab\common\win32utils.py", line 271, in _set_window_foreground win32gui.SetForegroundWindow(hwnd) pywintypes.error: (0, 'SetForegroundWindow', 'No error message is available')

It seems like the application can't be taken to foreground

gaozhao1989 commented 6 months ago

Is Java application running under visible window of Jenkins machine