Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to validate blank field using QTP 11.00?
#2
Solved: 11 Years, 6 Months, 2 Weeks ago
Hi,

To check if txtBox is blank or not try the below code
Code:
valTXT=Browser(xx).Page(yy).webedit("userName").GetRoProperty("value")
if valTXT="" Then
'do something
else
Browser(xx).Page(yy).webedit("userName").Set ""
'to make field balnk
EndIF

Regards,
Sankalp
Reply


Messages In This Thread
RE: How to validate blank field using QTP 11.00? - by sshukla12 - 06-12-2012, 10:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  getting the value from the field learning 0 1,138 03-19-2019, 09:13 AM
Last Post: learning
  How to validate mandatory filed (*) in web application using balak89 1 4,258 09-13-2015, 12:54 AM
Last Post: ADITI1992
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 5,136 09-13-2015, 12:06 AM
Last Post: ADITI1992
Smile Need to validate a .txt file and .jpeg image. aman8604 0 2,435 04-09-2015, 11:33 AM
Last Post: aman8604
Sad Validate New Employee Creation hello_sanjay 0 1,963 04-07-2015, 06:16 PM
Last Post: hello_sanjay

Forum Jump:


Users browsing this thread: 2 Guest(s)