I am using pywinauto to automate the process of uploading photo, I use Selenuim to click on a button that pops up a window box to select and upload photo. I use Swapy to get the code for setting up automation, but that codes gives an error of "int took too long to convert" I have tried multiple things but failed
I tried To get it using the class names, titles etc but all failed
from pywinauto.application import Application
app = Application().connect(title=u'Open', class_name='#32770')
window = app.Open
static = window.Static
static.ClickInput()
static.type_keys(Name_of_File)
button = window[u'&Open']
button.Click()
I am expecting it to input the name Of file in the windows dialouge box and then click on Open Button to start uploading.
but I get the following error:
return bool(win32functions.IsWindowVisible(handle))
ctypes.ArgumentError: argument 1: <class 'OverflowError'>: int too long
to convert