Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting text from password edit box
#10
Solved: 12 Years, 10 Months, 3 Weeks ago
Hi QTPKing

Please try the below script. This script has been recorded with our Forum.
--------------------------
Code:
Browser("SRAIS-AS Login").Page("QTP Forums").Link("Login").Click
Browser("SRAIS-AS Login").Page("QTP Forums").WebEdit("quick_username").Set "QTPgrd"
Browser("SRAIS-AS Login").Page("QTP Forums").WebEdit("quick_password").SetSecure "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
A = Browser("SRAIS-AS Login").Page("QTP Forums").WebEdit("quick_password").GetROProperty("Value")
Msgbox (A)
Browser("SRAIS-AS Login").Page("QTP Forums").WebButton("Login").Click
--------------------------
In the message box you would receive the password entered in the Password text field, say if you have entered password something like "QTP000" this would be displayed in the message box
Reply


Messages In This Thread
Getting text from password edit box - by laura - 07-14-2009, 08:48 PM
RE: Getting text from password edit box - by QTPgrd - 07-15-2009, 06:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Password Encryption / Decryption for swfobject YogeshCallappa 0 2,069 06-23-2017, 03:57 PM
Last Post: YogeshCallappa
  How can we get the Windows application Text box background color Using UFT 11.53 Kuppampattu 3 6,802 06-06-2017, 11:12 AM
Last Post: workrohit08
  UFT 12.53 trial version not recognizing its sample flight application login/password NehaRB 2 4,347 10-07-2016, 06:49 PM
Last Post: pradeep537
  Not able to set value in application web edit box tanuj dewangan 4 4,480 07-29-2016, 03:58 PM
Last Post: harshadevadas
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 5,780 09-13-2015, 12:06 AM
Last Post: ADITI1992

Forum Jump:


Users browsing this thread: 3 Guest(s)