in my C# application in using Selenium to send files on web.whatsapp.
I send multiple files to multiple numbers and this is problem. Because sometimes when user's internet is not fast, then it will redirect to another chat before it finish uploading file.
I tried to check for div element where is that 'loading circle' -> if it exist -> don't redirect
Problem is that selector path is always different for that div so it won't work this way.
Do anyone have any ideas? Or some way to check if file is already uploaded? Maybe some javascript that returns if any file is being uploaded on website? Thank you so much for all answers and have a nice day :)