Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to delete field values using qtp?
#1
Solved: 10 Years, 9 Months, 1 Week ago
hi,

I want the scripts to delete the field values.Since i dont have reset option in my application.Plz help me.
Reply
#2
Solved: 10 Years, 9 Months, 1 Week ago
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
Solved: 10 Years, 9 Months, 1 Week ago
hi,
I tried ur script.but it is not deleting the fields.any idea plz share with me
Reply
#4
Solved: 10 Years, 9 Months, 1 Week ago
Have you inserted the Browser,Page and Webedit values in the code?
Code:
Browser("").Page("").WebEdit("").Set ""
Reply
#5
Solved: 10 Years, 9 Months, 1 Week ago
s i have inserted.I used

Code:
window("").winobject("").set ""
Reply
#6
Solved: 10 Years, 9 Months, 1 Week ago
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
Solved: 10 Years, 9 Months, 1 Week ago
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 921 03-19-2019, 09:13 AM
Last Post: learning
  Delete Firefox history and Cookies Anupama 0 1,324 06-18-2018, 11:57 AM
Last Post: Anupama
  Mandatory field validation in QTP Yog 0 3,324 03-05-2015, 01:48 PM
Last Post: Yog
  How to delete particular mails in Gmail using QTP rajkumarsm 1 3,865 10-06-2014, 07:03 PM
Last Post: rajkumarsm
  How to delete the cookies (1000 records) akhandesh 1 2,500 09-03-2014, 09:57 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)