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 is the difference between the design-time and run-time data tables?
what is the advantages and disadvantages of using functions instead of re usable actions
What if recovery scenarios is also failed for identify the alert ? (We are handling unexpected popup through recovery scenarios but if still recovery scenarios also failed than what should be the approach)
what is keyword driven testing in qtp?n how is it useful?
How can we extract data like "Details","Result","Time" from the 'Run Error' result generated in QTP after run time errors are generated during a run & import the details etc...into excel sheet
What are the steps involved in recovery scenario wizard?
UFT 12.02 which ALM version will support
How do you do batch testing in wr and is it possible to do in qtp, if so explain?
Can we create user defined functions in qtp?
how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.
What environment does qtp run in?
What is the diff between image and bitmap check point?
In qtp is it possible to check broken links of a page?
How reliable are the site's Internet connections required to be? And how does that affect backup system or redundant connection requirements and testing?
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?