![]() |
Data not getting entered in web edit box. - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Data not getting entered in web edit box. (/Thread-Data-not-getting-entered-in-web-edit-box) |
Data not getting entered in web edit box. - anupam4j - 12-26-2012 Hi, I have a login script which enters the username and password. The problem is that after QTP enters the password(which it does after entering the username), the password in the password field vanishes when QTP executes the next line of code which is clicking on the Login button. Hence, am not able to login. Please suggest a possible solution. RE: Data not getting entered in web edit box. - ManualTester - 12-26-2012 Please post your script. RE: Data not getting entered in web edit box. - anupam4j - 12-27-2012 Below is the script: Code: SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe","","H:\","open" ------------------------------------------------------------------ RE: Data not getting entered in web edit box. - ssvali - 12-27-2012 Use "SetSecure" for passwords instead of "set" RE: Data not getting entered in web edit box. - anupam4j - 12-31-2012 Hi, I tried using SetSecure but the problem persists. Actually I noticed one thing. The application I am testing is behaving in a different manner. Once I enter the username and password and then without clicking on the login button if I switch to a different tab of the browser and then come back to the original tab, the password field appears empty. Is there a possible solution by which I can overcome this problem..may be any code? RE: Data not getting entered in web edit box. - sams001 - 01-03-2013 I guess It may be as per design. As the password field is protected and supposed to be secured, the user is supposed to reenter the password in the above situation you mentioned. RE: Data not getting entered in web edit box. - Ankesh - 01-03-2013 Can u try the below code. Code: Browser("Ultimatix - Digitally").Page("Ultimatix - Digitally").WebEdit("PASSWORD").object.value=<Password> Regards, Ankesh RE: Data not getting entered in web edit box. - anupam4j - 01-07-2013 Hi Ankesh, It worked. Thanks a lot. Could you please tell me what is the reason this code worked. Regards, Anupam RE: Data not getting entered in web edit box. - Ankesh - 01-07-2013 Sometime few field are readonly... you cant set values into those fields using the normal set option. Object.value overwrites the readonly property and assigns a value to the object at runtime. Regards, Ankesh |