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
What are the advantages of a Hybrid framework?
tell me exact differenceb bw qtp and selenium?(could not tell open soure and licennce? difference in usage and technical difference?
Explain the check points in quicktest professional (qtp)?
How to handle the exceptions using recovery secnario manager in quicktest professional (qtp)?
How to Test the mainframe application?
How to use actions in qtp ?
How to check bitmap output value?
How do we handle run-time errors?
after click on compose mail how can we attached a file in qtp with vbscript code
What are private functions in QTP? How they can be called from the function library?
After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.
Hi, I am using 2 excel sheet.First excel sheet works fine with the script, if it opens the 2nd excel sheet,it works fine,but after finish all the rows it is giving the following error in the following line. InValid Procedure call or argument Line (178): "Browser("name:="&result,"application version:=internet explorer 7").Page ("title:=bgt.*", "index:=0").WebList ("name:=SearchType","html id:=Select1","location:=0").Select SearchType1". I have seen a web article says that,If we use any vbscript friendly name it may gives the above error-Invalid procedure call or argument not sure,Am I using any VBScript frienlyName? in the above line? [but the same line is perfecly working for first Excel ] It is little urgent. Any Help Thanks you
Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....
Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris
What are the 3 main stages involved in testing with qtp?