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
What are the benefits of quick test pro(qtp)?
How to use the object spy in quicktest professional (qtp) 8.0 version?
What will be happen if i load object repository at run time, but it has already associated.
can the activities of test case design be automated?
Brief the process of testing with UFT?
What are the Application Functions available in QTP?
What Folder Structure following in Keyword Driven Frame work?
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
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?
how to acess a test in RSA?
What are the different types of functions available in qtp and explain ?
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
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
What is checkpoint in qtp?
How do you create regression test packs?