Hello and namaste! OMG this is a life saver! I have been struggling with how to do this for the last 2 days. And then I find this and BANG! Using the pynput module could just be my new favorite Python module!! Thank you again!
Great Video! Love it! I am Creating an Automation where I used this code for uploading multiple pdf files(Using for loop, of-course I am using a LIST of pdf files) to an asset management tool but somehow the code is not working for me. The ask is to upload the pdf files from the local machine to Asset management Tool using system Popup. Any specific reason ? or Shall I use some other library ?
hi, truly great video dude helped me a lot on a college capstone project i am working on , but i am getting issue as the code runs successfully but after opening and uploading the chrome/edge/Firefox window closes immediately, can you please guide me !
The only reason we use an external library pynput is because Selenium WebDriver can't interact with system pop-up. Browser interaction should happen using Selenium WebDriver, there is no need to use other libraries unless there is a need. It makes the framework unstable.
What about continuing with Selenium after uploading the file? When we try to verify the visibility of the file we get the NoSuchWindowException. How can we continue to automate using selenium?
There is nothing different needed to continue as we never moved away from Selenium WebDriver code, we simply incorporated the pynput library. You can simply wait for the next element you want to interact with and work with it.
Good one. However instead of Png can you choose pdf?Cause when I upload a PDF it saves as a png file. So need to select All files and then upload the pdf file.
Hello @Let's Kode It, the video was really amazing. Is it possible to move files from local machine to remote server Eg. I have a test.xlsx file in local machine that needs to be uploaded into Archive folder of remote machine using selenium python? No need to upload into any websites.
Selenium WebDriver works for browsers only. If you simply want to copy a file from local machine to remote server, then you can implement a simple python script. There is no need of Selenium WebDriver for that.
Cool. I have a question I made a whatsapp automation tool and worries about one thing if i use send key in my local machine and give a absolute path like C:\\Users\\HP\\Desktop\\video.mp4 it send video. but my question is if i deploy it online will absolute path work? in users pc? if no whats alternative to provide file to upload
No Its Not working for me ... Could you help me out keyboard = Controller() keyboard.type("C:\\Users\ aveen.sampath\\Desktop\\MCdermottcosta\\Progressive\\DownloadedPDF\\Progressive - Boyd, Robert - Notice Of Conditional Renewal - Effective - 12-27-23 - 5.pdf") keyboard.press(Key.enter) keyboard.release(Key.enter)
Great video. I've been automatizing the yt upload because API restrictions and your example worked flawlessly.
Glad you found it helpful :)
Please like and share the video and help us spread the word.
Hello and namaste! OMG this is a life saver! I have been struggling with how to do this for the last 2 days. And then I find this and BANG! Using the pynput module could just be my new favorite Python module!! Thank you again!
Glad you found it helpful :)
Please like and share the video and help us spread the word.
This is incredible, You don't know how is this helpful for me 👍👍👍
Glad you found it helpful :)
Please like and share the video and help us spread the word.
Great Video! Love it! I am Creating an Automation where I used this code for uploading multiple pdf files(Using for loop, of-course I am using a LIST of pdf files) to an asset management tool but somehow the code is not working for me. The ask is to upload the pdf files from the local machine to Asset management Tool using system Popup.
Any specific reason ? or Shall I use some other library ?
Can you please provide more details about the issue you are seeing?
hi, truly great video dude helped me a lot on a college capstone project i am working on , but i am getting issue as the code runs successfully but after opening and uploading the chrome/edge/Firefox window closes immediately, can you please guide me !
Glad you found it helpful :)
Please like and share the video and help us spread the word.
Please send me the code and I can take a look at it and check why the browser is closing after uploading the file.
you resolved one of my very big issue, thanks a lot..
appreciated highly..
Glad you found it helpful :)
Please like and share the video and help us spread the word.
Can you target the element with selenium and click on it using pynput?
The only reason we use an external library pynput is because Selenium WebDriver can't interact with system pop-up. Browser interaction should happen using Selenium WebDriver, there is no need to use other libraries unless there is a need. It makes the framework unstable.
Very helpful video , I don't have any word
Glad you found it helpful :)
Please like and share the video and help us spread the word.
it really helped me a lot, bundle of thanks!
Glad you found it helpful :)
Please like and share the video and help us spread the word.
What about continuing with Selenium after uploading the file? When we try to verify the visibility of the file we get the NoSuchWindowException.
How can we continue to automate using selenium?
There is nothing different needed to continue as we never moved away from Selenium WebDriver code, we simply incorporated the pynput library.
You can simply wait for the next element you want to interact with and work with it.
Thank you so much you are the man !!!
😍
Glad you found it helpful :)
Please like and share the video and help us spread the word.
Good one. However instead of Png can you choose pdf?Cause when I upload a PDF it saves as a png file. So need to select All files and then upload the pdf file.
Uploading PDF saves PNG file?
Can you please explain?
Hello @Let's Kode It, the video was really amazing. Is it possible to move files from local machine to remote server Eg. I have a test.xlsx file in local machine that needs to be uploaded into Archive folder of remote machine using selenium python? No need to upload into any websites.
Selenium WebDriver works for browsers only. If you simply want to copy a file from local machine to remote server, then you can implement a simple python script. There is no need of Selenium WebDriver for that.
Thank you, you helped me a lot in this video
Glad you found it helpful :)
Please like and share the video to spread the word and help us.
Can you pls let me know how do you send cmd+shift+g in Mac?
keyboard.press(Key.cmd)
keyboard.press(Key.shift)
keyboard.press("g")
keyboard.release("g")
keyboard.release(Key.shift)
keyboard.release(Key.cmd)
This is another great way to send the path using keyboard. But can you also let us know how to do using pytest framework?
pytest is a test framework which provided fixtures/annotations to run tests. It has nothing to do with uploading files or handling file uploads.
Cool. I have a question I made a whatsapp automation tool and worries about one thing if i use send key in my local machine and give a absolute path like C:\\Users\\HP\\Desktop\\video.mp4 it send video. but my question is if i deploy it online will absolute path work? in users pc? if no whats alternative to provide file to upload
You should store the file on the remote server and use the relative path.
@@LetsKodeItOfficial please tell which remote server is best
@@chhamzamaqsood By remote server, I referred to wherever you want to deploy online.
Hi! what will be the path like in mac?
Right click the file and click Get Info, you can find the file path from Get Info pop-up.
really really super bhaiya
Glad you found it helpful :)
Please like and share the video and help us spread the word.
Extremely helpful brother but can you help me with how to upload multiple files with same.
Glad you found it helpful :)
Please like and share the video to spread the word and help us.
Simply follow the manual steps for UI Automation. You just need to repeat the process for multiple files.
@@LetsKodeItOfficial I tried to do so. I have 6 files I tried one by one approach but it opens multiple explorers and uploads only 1st and 5th files.
Thaaaaanks! 🎉
Glad you found it helpful :)
Please like and share the video to spread the word and help us.
Justo lo que buscaba, buen video ;)
Glad you found it helpful :)
Please like and share the video to spread the word and help us.
Like every coding tutorial I've ever watched, the very first step doens;'t work
If you need support, please provide details. We will try to help.
Mac's file system (Finder) does not let you enter the file path like you did like on WIndows.
You can first send cmd+shift+g and then it will provide a text field to enter the file path.
@@LetsKodeItOfficial Oh really!? Man, I needed you to tell me that 4 days ago before I shifted my focus to Windows. 😂
@@ManPursueExcellence Haha, sorry I didn't get a chance before to get back to you. Hope this helps 👍
great vid 😃😃👍👍
Glad you found it helpful :)
Please like and share the video to spread the word and help us.
PERFEITO!!!
Glad you found it helpful :)
Please like and share the video to spread the word and help us.
thank yoou so much
Glad you found it helpful :)
Please like and share the video to spread the word and help us.
nice 😄
Glad you found it helpful :)
Please like and share the video to spread the word and help us.
No Its Not working for me ... Could you help me out
keyboard = Controller()
keyboard.type("C:\\Users\
aveen.sampath\\Desktop\\MCdermottcosta\\Progressive\\DownloadedPDF\\Progressive - Boyd, Robert - Notice Of Conditional Renewal - Effective - 12-27-23 - 5.pdf")
keyboard.press(Key.enter)
keyboard.release(Key.enter)
What issue are you seeing?