Fiddle Freak
Fiddle Freak

Reputation: 2041

How to automate username/password fill for firefox authentication popup using selenium IDE

I got a selenium script that works, but when it is opened with selenium-rc it is in a new instanced which requires me to re-login. Is there a way to automate filling in the username/password for the "authentication required" window that pops up?

I have tried the following but it doesn't work:

http://username:[email protected]/ instead of http://site.com/

Any ideas other than calling another script like autohotkey?

Upvotes: 2

Views: 9282

Answers (3)

mwalter
mwalter

Reputation: 1003

You could give the Firefox plugin Integrated Authentication for Firefox a try. After installing you can configure the plugin in the options menu of Firefox. Just add your site.com to the integrated authentication enabled sites and see whether it works for you. In my case it solved the problem.

Upvotes: 2

Ankit jain
Ankit jain

Reputation: 4318

Answer of your question you get from here

you have to create FF profile for selenium RC, you can create profile from here

Upvotes: 1

Fiddle Freak
Fiddle Freak

Reputation: 2041

I ended up using AutoIT with a login script containing the following and it worked:

WinWaitActive("Authentication Required")

Send("Username")

Send("{TAB}")

Send("Password")

Send("{ENTER}")

Support information for Firefox environment setup was found here:

http://www.passionatetester.com/2010/03/how-to-handle-windows-authentication.html

Upvotes: 2

Related Questions