Hello community, i have a trouble to authenticate my credentials using selenium with a chrome driver and VBA.
I need to download a file from a webpage which need user put its credentials.
I read something about it, and i could got this code:
When I run the code, I get a web page access error:
Error code:
The link and the page works fine, for example if i put only the webpage : https://www.dialer.com.ar/lista/archivos/Lista_Gremio_Dialer.xlsx
i can get in on the webpage with the pop up to put credentials:
and then when I enter the username and password, the file starts downloading:
But i need automatize the download routine with selenium and VBA.
For example if i try with another page with the same code, works fine.
I think the problem is about the pop up that appears on the page or something in the code that is missing.
I really appreciate some kind of help, thank you very much.
I need to download a file from a webpage which need user put its credentials.
I read something about it, and i could got this code:
VBA Code:
Sub test()
Set ch = New Selenium.ChromeDriver
ch.AddArgument "start-maximized" Maximize browser screen
ch.Get ("http://gremio:@Dialer2022@https://www.dialer.com.ar/lista/archivos/Lista_Gremio_Dialer.xlsx")
End Sub
When I run the code, I get a web page access error:
Error code:
The link and the page works fine, for example if i put only the webpage : https://www.dialer.com.ar/lista/archivos/Lista_Gremio_Dialer.xlsx
i can get in on the webpage with the pop up to put credentials:
and then when I enter the username and password, the file starts downloading:
But i need automatize the download routine with selenium and VBA.
For example if i try with another page with the same code, works fine.
VBA Code:
Sub test()
Set ch = New Selenium.ChromeDriver
ch.AddArgument "start-maximized" ' Maximize browser screen
ch.Get ("http://test:test@browserspy.dk/password-ok.php")
End Sub
I think the problem is about the pop up that appears on the page or something in the code that is missing.
I really appreciate some kind of help, thank you very much.