Steps
--------
1) Get the path of the file to be uploaded
Path module is used to get the path of the file. It is supported in python 3.x version.
2) Go to the url of the website and find x path of the file upload element. send_keys(absolute path of the file name ) is the command for upload files in selenium.
3) Verify file upload is successful
Code:
https://github.com/simplyajith/youtub...
Note: Locators may have changed, so change the locators and check if it didn't work
On this page of the site you can watch the video online How to upload files using selenium -python with a duration of hours minute second in good quality, which was uploaded by the user Ajith S 17 November 2019, share the link with friends and acquaintances, this video has already been watched 767 times on youtube and it was liked by 9 viewers. Enjoy your viewing!