can u write one user defined function for webedit class.
Answer Posted / adlajaipal
'@generic function for Webedit
'@ arguments to pass values
Function WebEdit(sValue,sItem)
set Edit=description.create()
Edit("micclass").value="webedit"
set
basepage=Browser("micclass:=Browser").page("micclass:=Page").childobjects(Edit)
sCount=basepage.count
for i=1 to sCount
Edit=basepage(i).getroproperty("name")
if sValue=Edit then
basepage(i).set sItem
exit for
end if
next
end function
'@ call
WebEdit "Editbox name", "value of edit box"
Is This Answer Correct ? | 5 Yes | 3 No |
Post New Answer View All Answers
In QA Testing when do you use Loadrunner vs QTP? What are the main differences between those two tools? Explain the purpose with real world scenario examples...In advance thank you!!!
How can we conduct U-I Testing by using QTP??????
hou can we use vb script in qtp could u tell me breafly
Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?
How to attach a file to TD?
what are the mandatory properties for a tex boxc (scenario?)
You will receive the mail in your outlook from client at night time to go ahead for the execution. Based on the mail you need to trigger the batch run. What is the QTP Code for this?
What is Curd testing?
Hai anyone please "Explain about Framework in QTP?"
how to test Web application using QTP software
What are the flaws in water fall model and how to overcome it?
Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B
What environment does qtp run in?
what is meant by source control?
Hi All, we are using QTP Automation Scripts to test SAP. I recorded QTP Automation Scripts in English-based SAP GUI. Now we have to test a French-based SAP sytem and use the same scripts. The QTP scripts are failing when executed on the French-based SAP System due to Object Recognition Issues. What can we do? Do I re-record the scripts in the French-based SAP system?