Interview Questions

Is there any function in winrunner which will clear the history of the browser?

Mercury WinRunner FAQ


(Continued from previous question...)

Is there any function in winrunner which will clear the history of the browser?

Q: Is there any function in winrunner which will clear the history of the browser?
[Actually the script is working fine when you execute for the first time. But when you execute in the second time it is directly going inside the application without asking for login credentials by taking the path from the browser history. So the script fails. It is working fine if I clear the history of the browser before each run. ]


This is not the matter of clearing the history. In any case it should not allow you to login to application with entering login credentials. I think this is application bug.
To clear history:
DOS_system with
del "C:\Documents and Settings\%USERNAME%
\Cookies"\*your_cookie\site_name*

(Continued on next question...)

Other Interview Questions