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 i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?
Can any give an example(if possible templates) how to test web application using QTP. thanks in advance
when I was doing the web testing with QTP using with standard checkpoint the Object selection -checkpoint properties dialog box not displaying pages and links hierarchical order. Could you please tell me. thanks
If I change the object name in one action will it be updated in all the actions? Or not?
What is the significance of “action 0” in qtp?
Dis advantages of XML checkpoint ?
Can we create user defined functions in qtp?
i need code for how to click on particular mail in utlook mail box .its urjent Thank You Balaji
Hi.. I want to do parametrization for selecting perticular flighr say XYZ by using local table: criteria: 1.If flight is available msgbox "Flight is available" and then select flight from flight table and click to ok button after that as enter username and ticket no and then stop 2. otherwise msgbox " Flight is not available" and stop Please help me out ..and let me know your responses on dipak.bachhav@gmail.com Regard, Dipak
Explain the difference between call to action and copy action?
What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?
What are the ways you can synchronize?
Explain the N-tire structure(process) for Funds Transfer ( means give N ways to funds Transfer in an Application)
Why do we use "Text checkpoint" If we can make use of it in "standard checkpoint" ?
Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.