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
How to add synchronisation points in qtp?
Plz Explain AUTOMATION REFERENCE MODEL?
How to connect the remote desktop using QTP 9.2 explain the method or procedure?
1. wat are the main diff b/w QTP 8.0 AND QTP 9.2 ( not user interface) 2. wat is the meaning of Keyword in keyword driven frame work? 3. how u will handle the unknown errors while exucution. (not recovery scenario)
Explain process of smart Identification in QTP?
Explain the concept of object repository & how qtp recognizes objects?
If the objects hierarchy is changing from build to build, then how you will handle that condition?
How do know the number of browsers opened?
What is difference in global and action sheet in qtp?
How to find array size in qtp?
There are 10 rows in the datatable. How can we fetch 2 rows and then skip 3rd row. After that, pick 4th & 5th row and skip 6th row. Please share code
Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19
what is the advantages and disadvantages of using functions instead of re usable actions
What is the use of text output value in quicktest professional?
How to start recording using quicktest professional (qtp)?