How To Handle HTTP Proxy Authentication Using AutoIt In Selenium WebDriver

Use of AutoIt with selenium webdriver Is real useful because selenium webdriver Is non able to handle windows dialog similar file upload dialog, file download dialog, HTTP proxy authentication dialog etc. But AutoIt Is desktop application testing tool too It Is real stable amongst treatment all these kind of dialog. Let's travail to piece of job amongst HTTP proxy authentication dialog.

Before reading to a greater extent than In this post, I am suggesting you lot to view bellow given pages. It volition helps you lot to empathize to a greater extent than close AutoIt script creation too Integration amongst selenium webdriver.
  1. What Is AutoIt
  2. How to download too Install AutoIt
  3. How to exercise script In AutoIt to upload file.
  4. How to Integrate AutoIt script amongst selenium webdriver to upload file.
  5. How to exercise AutoIt + Selenium WebDriver script to download file.
Create AutoIt Script To Handle HTTP Authentication
Sometimes when you lot access site, It volition present you lot HTTP proxy authentication popup every bit shown In bellow Image.


To grip such popups, We tin hold upward AutoIt script amongst selenium webdriver script. Now you lot are already aware close how to exercise AutoIt script.

AutoIt script to grip HTTP proxy authentication Is every bit bellow.
; Used Title belongings of authntication dialog window. It volition expect for 8 seconds. WinWaitActive("Authentication Required", "", 8)  ; Send User ID In Used lift text field. Send("Your User Name")  ; Press keyboard TAB substitution to motion cursor on password text field. Send("{TAB}")  ;  Send Passoword In Password text field. Send("Password")  ; Press Keyboard ENTER substitution to conduct OK button. Send("{ENTER}")

You require to supersede your actual user lift too password In higher upward script too and hence salve It amongst .au3 extension using AutoIt script editor. Then you lot tin convert your script In .exe format past times compiling using AutoIt. You tin Integrate that .exe file amongst selenium webdriver script to grip HTTP authentication Using AutoIt.

More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM

http://www.software-testing-tutorials-automation.com/
Post a Comment (0)
Previous Post Next Post