Selenium can only record the web based component which reside on your web application its not able to identify the component of windows like 'Authentication window' and 'file upload/download window' .
so what to do if we want to automate the windows component???????????????????
Don't worry there exist a alternative solution for every problem...............!!!!!!
You can use Auto it ....
Auto it is a scripting language designed for automating the Windows GUI and general scripting
It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in order to automate tasks in a way not possible or reliable with other languages (e.g. VBScript and SendKeys). AutoIt is also very small, self-contained and will run on all versions of Windows out-of-the-box with no annoying "runtimes" required!
For more information regarding auto it .. Download Auto it
Authentication window in IE |
To Automate this kind of window you need to write some auto it script
Here WinWaitActive("Text at the top of window")
it will wait for the window to appear which contain text as defined in braces
$uname-- its to declare the variable and assign the value
Send($uname) -- it will send the value of variable to the first text box
Send("{TAB}") --- its a another method to send a keystroke . in this method it will press 'Tab' key like a user press
if you want to press any other keystroke automatically use this method
for if you want that enter will be press after some time ..thn --- send("{Enter}")
its to simple ............!!!!!!!!!!!!!!!
and the execution of last method will stop the execution of auto it script
after writing this code save the file as *.au3 extension
and by using Auto it tool make *.exe of that *.au3 file (By right click on .au3 file)
Now the New problem occurs how to integrate this exe file with selenium
there is a simple solution for that ..u just need to make change in your selenium script
//Code