in this scenario instead of giving clicking event script i want to give correct values through script after getting popup window.
how to write script for that and where sholud i write this script? whether i have to write within main script or shall i write this script seperatly and associate that script with main script?
I am also in with what Ganesh has suggested. A know application functionality should be handled through code and not recovery scenario. If it was a browser dialog like Security Information or Security Certificate etc...then you can look at handling it through Recovery scenario. In the later case the application has nothing to do with the popup.
B().P().Webedit().set "ur name"
B().p().webedit().setsecure "ur pwd"
If B().Dialog().Exist() Then
your Library file (which needs to associate to the above test)
B().P().Webedit().set "ur name" 'give name if it required
B().p().webedit().setsecure "ur pwd" 'give correct password