Hello everyone i'm trying to make a bot that uploads a file and reads the percentage of the upload bar. I already have the code to read the percentage, but when i actually click on the upload button it hangs until it is fully uploaded.
I have also tried using threads (This is my first time using threads) and it seems to work the same as just calling the function.
testy = driver.find_element_by_css_selector("Percentage").text
w = threading.Thread(name='get_percent', target=get_percent())
e = threading.Thread(name='start_upload', target=start_upload())
e.start() #It will hang on upload
#if i do it like this instead it will hang in my get_percent function
How do i get around this? Please help