def get_jab_wrapper():
start_test_application()
pipe = queue.Queue()
thread = threading.Thread(target=pump_background, daemon=True, args=[pipe])
thread.start()
jab_wrapper = pipe.get()
if not jab_wrapper:
raise Exception("Failed to initialize Java Access Bridge Wrapper")
time.sleep(0.1)
yield jab_wrapper
logging.info("Shutting down JAB wrapper")
if jab_wrapper:
jab_wrapper.shutdown()
jab_wrapper / pipe.get() returns "None".
The application starts successfully, however. I have included the init code for the application here:
def start_test_application():
jnlp_file: Path = Path(get_download_file())
# Run the program in background
logging.info("Opening JNLP application")
subprocess.Popen(["javaws", get_download_file()], shell=True, close_fds=True)
# Wait a bit for application to open
time.sleep(20)
I have also made sure that:
Accessibility Bridge is enable for the Java
Windows system accessibility for Java Accessibility Bridge is enabled
removed the User prefs for .accessibility.properties.
Using the following code (based on the example):
jab_wrapper / pipe.get() returns "None".
The application starts successfully, however. I have included the init code for the application here:
I have also made sure that:
Any advice much appreciated!