Handling Authentication Required in a new window similar to pop ups

91 views
Skip to first unread message

Arun Shankar

unread,
Jul 28, 2015, 8:24:00 AM7/28/15
to Selenium Users
Hi All,

I have a URL, once I access it I get a new Window called Authentication Required. On the window I cannot use any object locating tools like Xpath or CSS selectors. Please see the attached snapshot and advise me on 2 things here:

1) How to make sure I can use any object locating tools like Xpath since I cannot even click on firebug. 

2) How to get the xpath of the username and password screen so that I can enter username and password.

Please advise.
soa-infra.PNG

Mercious

unread,
Jul 28, 2015, 10:00:48 AM7/28/15
to Selenium Users, arunsh...@gmail.com
I don't understand your first question.

If you mean to click icons of the Firefox-Browser: You cannot locate these, because they aren't part of the websites DOM. They belong to your browser, not the website.

For your second question, please use google first. You come across this answer:
http://stackoverflow.com/questions/24304752/how-to-handle-authentication-popup-with-selenium-webdriver

Mukesh otwani

unread,
Jul 28, 2015, 4:13:14 PM7/28/15
to Selenium Users, arunsh...@gmail.com
Hi Arun,

I have faced this issue and solved via AutoIT.

I have covered 2 possible solutions have a look

arun shankar

unread,
Jul 28, 2015, 11:51:15 PM7/28/15
to Mukesh otwani, Selenium Users
Thank you Mukesh.. This is of great help :)
--
Thanks,
Arun Shankar C

Mercious

unread,
Jul 29, 2015, 5:12:12 AM7/29/15
to Selenium Users, mukesh....@gmail.com, arunsh...@gmail.com
Why use AutoIT for it if its supported by Selenium?

This is so stupid, seriously. 

Mukesh

unread,
Jul 29, 2015, 6:00:04 AM7/29/15
to Mercious, arunsh...@gmail.com, seleniu...@googlegroups.com

Hi Mercious,

What's stupidity here, as per I know Selenium don't have Api to handle authentication pop up so we can do by integrate with AutoIt.
We have alternative like pass username password in URL but that doesn't work always.

I m curious to know that how u handle ?

Kaleem Uddin Mohammed Abdul

unread,
Aug 3, 2015, 1:45:57 AM8/3/15
to Selenium Users
+1 For Mukesh Question!

Using Selenium we can't handle Windows Dialog or Browser Dialog like Authentication window, Upload File window. Hence the Workaround is to use Robot , AutoIT in Java and AutoIT is C#.

 As I understand, Selenium is only for browser based applications, when it is matured and support Windows based dialog and Browser based dialog we will not be using AutoIT and Robot.


On Tuesday, July 28, 2015 at 5:54:00 PM UTC+5:30, Arun Shankar wrote:

Mercious

unread,
Aug 3, 2015, 3:49:03 AM8/3/15
to Selenium Users
Well, my bad because i did not take into consideration that the website under test does not belong to whoever tests it.

If you have access then you should configure your server / cluster to not ask your Selenium tests for authentification. There are many ways to achieve that.

But when you are testing websites that you have no access to, then probably AutoIT is the only solution, yea.
Reply all
Reply to author
Forward
0 new messages