Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
kanuri
Posts : 6
Join date : 2012-09-28
Age : 36
Location : Hyderabad

Urgent!!!!!!!    How to handle firefox authentication pop-up using selenium webdriver in junit framework.. Empty Urgent!!!!!!! How to handle firefox authentication pop-up using selenium webdriver in junit framework..

Fri Sep 28, 2012 10:25 am
Hi to all,

I have a small problem,,, before entering into the application i got authentication pop-up.. i tried to handle the authentication pop-up but i failed..
can any one please tell me how to handle the authentication popup.. my firefox browser version is 15.0.1....

can any one please send me the code to handle authentication popup..

For this here i wrote the below code

Code:

Runtime.getRuntime().exec("D:/WorkPlaces/OAS_Screens/Login.exe");

Login.exe

WinWaitActive("Authentication Required")
ControlSetText("Authentication Required","","Edit1","user")
ControlSetText("Authentication Required","","Edit2","pass")
Send("OK{ENTER}")


Here the login.exe file is not getting executed,,

can any one please tell me ........

Thanx in advance...
avatar
ashish_techie
Amateur
Amateur
Posts : 73
Join date : 2011-08-09

Urgent!!!!!!!    How to handle firefox authentication pop-up using selenium webdriver in junit framework.. Empty Re: Urgent!!!!!!! How to handle firefox authentication pop-up using selenium webdriver in junit framework..

Wed Oct 31, 2012 12:55 am
Use Auto IT.. it will help.. i have used it
Regards
Ashish

For selenium tutorials:
www.qtpselenium.com/selenium-tutorials
avatar
raghda
Posts : 2
Join date : 2014-04-23

Urgent!!!!!!!    How to handle firefox authentication pop-up using selenium webdriver in junit framework.. Empty webdriver driver.get() never responds because of windows security popup

Wed Apr 23, 2014 2:34 pm
Hi Kanuri,
Did you get any solution to your problem?I have a similar one.



I am using selenium 2.40 and java 6

I searched a lot for a solution for handling windows authentication popup window.

I found some answers like using Robot ,Alert and AutoIT.
But actually none of these are working for me because after the following line ,nothing is getting executed even System.out.printlin("******");
 
 driver.get(url);
 
The driver never responds and i cannot do any further action.
 
Any ideas??
 
Thanks in Advance
avatar
toolsqa
Active particpant
Active particpant
Posts : 20
Join date : 2014-05-01
Age : 42
Location : United Kingdom
http://www.toolsqa.com

Urgent!!!!!!!    How to handle firefox authentication pop-up using selenium webdriver in junit framework.. Empty Re: Urgent!!!!!!! How to handle firefox authentication pop-up using selenium webdriver in junit framework..

Fri May 02, 2014 8:53 pm
Hi,

Nothing is getting executed because selenium does not shift the control to next statement untill and unless you press enter or cancel on the pop up. In these situation robot does not work but Auto IT can only if the window is not browser window.

Anycase do a trick with AutoIT, Execute autoit code before navigating to the Url, as AutoIt takes some time to start and in the meantime you Selenium Script will open the webpage and the authentication pop up.

Open browser > Execute AutoIT > Navigate to URL

Still there are other ways to solve this issue and I have explained this in detail on my blog. Please go to Toolsqa dot com and search for http proxy authentication. I am not able to paste the url, as I am a new member of this forum.

www toolsqa com/selenium-webdriver/http-proxy-authentication/
http://www.toolsqa.com/selenium-webdriver/autoit-selenium-webdriver/


Best Regards,
www.ToolsQA.com


Last edited by toolsqa on Mon May 12, 2014 9:22 pm; edited 1 time in total
rohit13
rohit13
Master
Master
Posts : 180
Join date : 2012-03-29
Age : 38
Location : INDIA
http://radical-qa.blogspot.in/

Urgent!!!!!!!    How to handle firefox authentication pop-up using selenium webdriver in junit framework.. Empty Re: Urgent!!!!!!! How to handle firefox authentication pop-up using selenium webdriver in junit framework..

Fri May 02, 2014 10:22 pm
Code:
http://Username:Password@WebURL


You can user above code, that will work for Firefox and Chrome browser.
avatar
toolsqa
Active particpant
Active particpant
Posts : 20
Join date : 2014-05-01
Age : 42
Location : United Kingdom
http://www.toolsqa.com

Urgent!!!!!!!    How to handle firefox authentication pop-up using selenium webdriver in junit framework.. Empty Re: Urgent!!!!!!! How to handle firefox authentication pop-up using selenium webdriver in junit framework..

Thu May 08, 2014 2:05 am
Hi, One more solution i have discovered, in case your AutoIT script is not getting execute, bcoz your code get stuck at that very moment when you navigate the url and it opens the authentication window. Just place your autoit script before the code where you are opening the url, it will work , as autoit script takes few secs to start.

Regards,
ToolsQA.com
Selenium Tutorials
Sponsored content

Urgent!!!!!!!    How to handle firefox authentication pop-up using selenium webdriver in junit framework.. Empty Re: Urgent!!!!!!! How to handle firefox authentication pop-up using selenium webdriver in junit framework..

Back to top
Permissions in this forum:
You cannot reply to topics in this forum