I'm using selenium with python to do a script witch it connect and go to the page and click to a button which open a modal and the print dialogbox, and in this modal their are another button to dowload but i can't click on it. The consol say : Unable to locate element: [id="download"]. I would like to download this file on pdf (and send it in email but it's another question). Thanks in advance.
Asked
Active
Viewed 110 times
0
-
Are you able to manually click on the download button but not with selenium? – Jortega Mar 29 '21 at 23:59
-
Yes exactly, i don't know why – Ronaldonizuka Mar 30 '21 at 00:29
-
Are you able to right click on the download button and click "Inspect"? – Jortega Mar 30 '21 at 00:35
-
Yes it's my last picture – Ronaldonizuka Mar 30 '21 at 00:37
-
If the download button is in an iframe you will need to switch to the iframe first. See this stackoverflow question. https://stackoverflow.com/questions/44834358/switch-to-an-iframe-through-selenium-and-python – Jortega Mar 30 '21 at 12:19