Posts: 12
Threads: 8
Joined: Sep 2012
Reputation:
0
12-26-2012, 09:21 PM
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.
Posts: 121
Threads: 8
Joined: Apr 2012
Reputation:
2
12-27-2012, 02:50 PM
Use "SetSecure" for passwords instead of "set"
Posts: 12
Threads: 8
Joined: Sep 2012
Reputation:
0
12-31-2012, 07:08 PM
(This post was last modified: 12-31-2012, 07:09 PM by anupam4j.)
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?
Posts: 29
Threads: 13
Joined: Oct 2012
Reputation:
0
01-03-2013, 10:07 AM
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.
Posts: 12
Threads: 8
Joined: Sep 2012
Reputation:
0
01-07-2013, 01:00 PM
Hi Ankesh,
It worked. Thanks a lot.
Could you please tell me what is the reason this code worked.
Regards,
Anupam
Posts: 424
Threads: 10
Joined: Aug 2011
Reputation:
0
01-07-2013, 03:39 PM
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