SeleniumBasic icon indicating copy to clipboard operation
SeleniumBasic copied to clipboard

Wait until Video uploads completely by Excel VBA using Selenium Web driver

Open vbamagician opened this issue 7 years ago • 2 comments

Hello Mates,

I'm trying to upload a video using Selenium on a website I have successfully created the code to upload the video to any web page! But Finding the problem when waiting for the video to complete the uploading process. Waiting should be dynamic. Yes, Sometimes, Video may take 3 minutes to upload and sometimes maybe 5 to 10 minutes depends upon the size of the media. Guys, would you help me with this?

Thank you

vbamagician avatar Apr 11 '18 18:04 vbamagician

Is there any indication of when it completes? What happens if you try to delete it while it is uploading?

mogulman52 avatar Apr 12 '18 23:04 mogulman52

Dear Friends, I have got the solution. Thank you for your feedback mogulman52 👍

I have found that one image has continuously appeared during upload..so I retain the XPath of that element and used that in find the elements.

It's like...


do until bot.FindElementsByXPath("Xpath of the that elements").count = 0
bot.wait 1000
loop

vbamagician avatar Apr 13 '18 09:04 vbamagician