can u write one user defined function for webedit class.
Answer Posted / sunitha
Gneric Function for WebEdit
Values strBrow,strPAge come from object repository
Value strEditboxName is the one which we get on spying the
object and getting its property name.
Value strVal is the one which we want to set in Edit box
function fg_SetValueinEditbox
(strBrow,strPage,strEditboxName,strVal)
set oD = Description.create
oD("micclass").value = "WebEdit"
set strEbox = Browser(strBrow).Page(strPage).Chilobjects(oD)
For iCnt=0 to strEbox.count-1
strName = strEbox(iCnt).GetROProperty("name")
If strcomp(strName,strEditboxName,1) = 0 Then
strEbox(iCnt).set strVal
Exit for
End if
Next
End Function
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
How many types of recording modes are there?
How will you test a stapler?
what are all the fileds present in object repository?
What is the use of an object spy tool in qtp?
Dear All , For UFT 12.02 which version QC or ALM will support ? Thanks Balaji
Have you used xml check point in your project? How?
What are the various types of Actions in UFT?
In qtp, explain what is qrs file?
how to disable the pop ups through QTP using a script
What is a reusable action?
What is the basic concept of qtp?
what is the difference between data driver & data driven and driver script?
I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
How you can make an action as re-usable action?