And when you open a new tab with selenium, is it possible to download the PDF automatically? Because when I click the Download button, a tab opens with the PDF already open and I want to download it automatically. Help me please!
And when you open a new tab with selenium, is it possible to download the PDF automatically? Because when I click the Download button, a tab opens with the PDF already open and I want to download it automatically. Help me please!
And when you open a new tab with selenium, is it possible to download the PDF automatically? Because when I click the Download button, a tab opens with the PDF already open and I want to download it automatically. Help me please!
what version of selenium are you using? This used to work with selenium 3+ but w/ selenium 4+ .. same code doesn't work for setting custom downloads directory
@@AminBoutarfi no error just custom directory is not setting ... it always defaults to downloads directory ... I've tried every solution I can think of, including what you had in video.
And when you open a new tab with selenium, is it possible to download the PDF automatically? Because when I click the Download button, a tab opens with the PDF already open and I want to download it automatically. Help me please!
You're a legend, will try this out. I kept trying to find the element for the download button on the new tab for the pdf.
I greatly appreciate your help, it's incredibly valuable
And when you open a new tab with selenium, is it possible to download the PDF automatically? Because when I click the Download button, a tab opens with the PDF already open and I want to download it automatically. Help me please!
Excellent! Very well explained
is this possible to configure the file path dynamic instead of hardcoding the path in main code.Please reply
hi , if i want to rename after download ,how could i do that
needed it ! thank you so much
And when you open a new tab with selenium, is it possible to download the PDF automatically? Because when I click the Download button, a tab opens with the PDF already open and I want to download it automatically. Help me please!
Very helpful!
Thank you!
And when you open a new tab with selenium, is it possible to download the PDF automatically? Because when I click the Download button, a tab opens with the PDF already open and I want to download it automatically. Help me please!
i keep getting a stale element reference exceptions thrown at a.get_attriibute and cant seem to debug .
Can we use multiple url pages here?
would be nice to have a sample of the python script to play with but good video thank you
What if theres no pdf but it shows a print window
Thank You So much man.
what version of selenium are you using? This used to work with selenium 3+ but w/ selenium 4+ .. same code doesn't work for setting custom downloads directory
I'm using Selenium 4!
@@AminBoutarfi Huh weird. Maybe it has to do w/ OS or a specific selenium 4 version. Thanks for letting me know.
@@eratera5836 you welcome! What error you are getting?
@@AminBoutarfi no error just custom directory is not setting ... it always defaults to downloads directory ... I've tried every solution I can think of, including what you had in video.
@@eratera5836 not sure how to help you then. Will share my code afterwards and you can try it out!
There's any way doing it as --heardless option?
I believe so yeah. Didn't try it tho to confirm!
And when you open a new tab with selenium, is it possible to download the PDF automatically? Because when I click the Download button, a tab opens with the PDF already open and I want to download it automatically. Help me please!
Did you watch the video till the end? I added code to specifically prevent that. Check video 13:25 . Hope it helps!
Thank you