Using selenium to automate saving bill slips as PDF, it comes to the point where a system's dialogue box pops up and I need to automate clicking "save" button in that box. Can I achieve that using pywin32 or pywinauto?
I tried pressing the enter key on keyboard after the dialogue box pops up, using the pynput module but that is not working.
My code:
def thread_function():
keyboard = Controller()
keyboard.press(Key.enter)
keyboard.release(Key.enter)
return
thread1 = threading.Thread(target=thread_function)
thread1.start()