Search
 
 

Display results as :
 


Rechercher Advanced Search

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

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

View previous topic View next topic Go down

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

Post by kanuri on 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...

kanuri

Posts : 6
Join date : 2012-09-28
Age : 28
Location : Hyderabad

Back to top Go down

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

Post by ashish_techie on 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

ashish_techie
Amateur
Amateur

Posts : 73
Join date : 2011-08-09

Back to top Go down

webdriver driver.get() never responds because of windows security popup

Post by raghda on 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

raghda

Posts : 2
Join date : 2014-04-23

Back to top Go down

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

Post by toolsqa on 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

toolsqa
Active particpant
Active particpant

Posts : 20
Join date : 2014-05-01
Age : 34
Location : United Kingdom

http://www.toolsqa.com

Back to top Go down

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

Post by rohit13 on 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.

_________________
Radical QA
http://radical-qa.blogspot.in/

rohit13
Master
Master

Posts : 180
Join date : 2012-03-29
Age : 30
Location : INDIA

http://radical-qa.blogspot.in/

Back to top Go down

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

Post by toolsqa on 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

toolsqa
Active particpant
Active particpant

Posts : 20
Join date : 2014-05-01
Age : 34
Location : United Kingdom

http://www.toolsqa.com

Back to top Go down

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

Post by Sponsored content Today at 3:11 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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