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

What are the benefits of quick test pro(qtp)?

556


How to use the object spy in quicktest professional (qtp) 8.0 version?

506


What will be happen if i load object repository at run time, but it has already associated.

1253


can the activities of test case design be automated?

1448


Brief the process of testing with UFT?

622






What are the Application Functions available in QTP?

1469


What Folder Structure following in Keyword Driven Frame work?

2272


i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api

1486


In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?

1500


how to acess a test in RSA?

1663


What are the different types of functions available in qtp and explain ?

560


how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

1900


I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com

1488


What is checkpoint in qtp?

548


How do you create regression test packs?

606