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 checking bitmaps?
What are the different recording modes?
Hi All, How to get repeated word in string . Thanks Balaji
what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana
What is Port testing. Whhen will you perform?
How to find the path of folder in which the test is saved in qtp?
For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?
Explain quicktest professional (qtp) testing process?
While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?
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.
please any one can explain the keyword driven framework. with gmail example.
What is QTP and the use of QTP in TD?
How you know that a test case is a regression test case
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)
What is meant by a Check Point in UFT? Also, explain the applicable Check Points.