Handle windows security authentication

281 views
Skip to first unread message

Vemula Suresh

unread,
Mar 16, 2020, 10:33:58 AM3/16/20
to Selenium Users
Hello Team,

I have to handle windows security authentication window (need to pass user details in the pop over) but i cant handle with selenium alerts. kindly suggest me how can I handle ?

I am executing my scripts through jenkins in headless browser using phantomJS driver
popover.jpg

Virender Kumar

unread,
Mar 17, 2020, 3:13:05 AM3/17/20
to seleniu...@googlegroups.com
Hi Suresh,
PF answer posted by Shoaib Akhtar :
https://stackoverflow.com/questions/40671662/how-to-handle-windows-authentication-popup-in-selenium-using-pythonplus-java   

Please check if it works for you. 

Regards,
Virender

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/237089cf-1e5f-496c-bef6-f0304555acef%40googlegroups.com.

Vemula Suresh

unread,
Mar 17, 2020, 3:29:38 AM3/17/20
to seleniu...@googlegroups.com
Hello Veerender,

I just gone through the code and it is related to python.

Shall I use the same for Java also? If yes how to install win32com. Client 

Please let me know 

Regards, 
Suresh

Virender Kumar

unread,
Mar 17, 2020, 6:33:49 AM3/17/20
to seleniu...@googlegroups.com

Vemula Suresh

unread,
Mar 17, 2020, 7:42:39 AM3/17/20
to seleniu...@googlegroups.com
Hello Veerender,

I am using PhantomJS driver for execute the scripts in headless browser on Linux server via Jenkins.

I already had verified with AutoIT tool for handling windows popover and able to handle in local IE browser but I couldn't in remote machine and headless browsers.


I agree with your statement we can able to handle windows popovers by passing credentials via URL on both chrome and Firefox browsers but unable to handle Edge and IE. 

Kindly provide a solution to handle this issue on Remote Desktop (Linux Server) IE and Headless browser 

Regards, 
Suresh


 

Jim Evans

unread,
Mar 17, 2020, 8:32:30 AM3/17/20
to Selenium Users
Once again, I point out that the right way (cross- platform, cross-browser, including headless) to do this is using a web proxy. See the blog post series covering this (including NTLM authentication) here: http://jimevansmusic.blogspot.com/2019/05/handling-authentication-requests-with.html
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages