- 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..
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
Here the login.exe file is not getting executed,,
can any one please tell me ........
Thanx in advance...
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...
- ashish_techieAmateur
- Posts : 73
Join date : 2011-08-09
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
Regards
Ashish
For selenium tutorials:
www.qtpselenium.com/selenium-tutorials
- raghda
- Posts : 2
Join date : 2014-04-23
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
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
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
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
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.
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
Regards,
ToolsQA.com
Selenium Tutorials
- Sponsored content
- Need the Selenium Framework With Webdriver
- Data Driven Framework using Selenium WebDriver with Apache POI
- Limitations for Selenium Webdriver - DataDriven Framework using Java
- IceCream FrameWork : Base on Selenium Webdriver and run test on Excelfile
- (Selenium Webdriver) Not able to click BROWSE button while uploading a file in GWT Framework
Permissions in this forum:
You cannot reply to topics in this forum