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


Please Help Members By Posting Answers For Below Questions

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!!!

2386


How can we conduct U-I Testing by using QTP??????

1429


hou can we use vb script in qtp could u tell me breafly

1737


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

1686


How to attach a file to TD?

656






what are the mandatory properties for a tex boxc (scenario?)

1528


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?

1337


What is Curd testing?

1883


Hai anyone please "Explain about Framework in QTP?"

1621


how to test Web application using QTP software

1567


What are the flaws in water fall model and how to overcome it?

560


Please help me by providing the License key for QTP 9.2, at guru_aarya@yahoo.co.in Best Regards Gururaj.B

2910


What environment does qtp run in?

621


what is meant by source control?

1695


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?

2323