Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to delete field values using qtp?
#1
hi,

I want the scripts to delete the field values.Since i dont have reset option in my application.Plz help me.
Reply
#2
If you want to delete values in the fields, you can use,

Code:
Browser("").Page("").WebEdit("").Set ""

this sets the values in the fields to empty.
Reply
#3
hi,
I tried ur script.but it is not deleting the fields.any idea plz share with me
Reply
#4
Have you inserted the Browser,Page and Webedit values in the code?
Code:
Browser("").Page("").WebEdit("").Set ""
Reply
#5
s i have inserted.I used

Code:
window("").winobject("").set ""
Reply
#6
Code:
rowser("").Page("").WebEdit("").Set ""

check the object's property "readedit". It must be 0.
Readonly Indicates whether the content of the object is read-only.
If it is 1 then u can't edit.
Reply
#7
You can also use press key func
Code:
Browser("").Page("").WebEdit("").PressKey micDel
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  getting the value from the field learning 0 1,415 03-19-2019, 09:13 AM
Last Post: learning
  Delete Firefox history and Cookies Anupama 0 1,878 06-18-2018, 11:57 AM
Last Post: Anupama
  Mandatory field validation in QTP Yog 0 3,738 03-05-2015, 01:48 PM
Last Post: Yog
  How to delete particular mails in Gmail using QTP rajkumarsm 1 4,728 10-06-2014, 07:03 PM
Last Post: rajkumarsm
  How to delete the cookies (1000 records) akhandesh 1 3,210 09-03-2014, 09:57 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)