I want different types of discriptive programming statments
coded for different types of web-objects?Give syntax and
example?
Answers were Sorted based on User's Feedback
Answer / srikanth
We can do 2types.
i)By creating properites through Description.create
ii) By passing properties through string arguments
i) Dim obj_desc
set obj_desc= Description.create()
obj_desc("class").value="webedit"
obj_desc("name").value="userid"
obj_desc("html tag").value= "input"
obj_desc("visible").value="True"
Browser("browser").Page("page").Webedit
("userid").set "srikanth"
ii) Browser("name:=Welcome to Gmail").Page("name:=Welcome
to Gmail").WebEdit("attachedText:=Userid").set "srikanth"
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ram.polavarapu
->static descriptive scripting
->dynamic scripting
static scripting
------- --------
browser("creation time:=0").page("micclass:=page").webedit
("text:=").set"vgdgv"
dynamic scripting
-------- ---------
dim e
set e=descriptive.create
e("micclass").value="WebEdit"
set a=browser("").page("").childobjects(e)
| Is This Answer Correct ? | 0 Yes | 0 No |
Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19
How can we automate Capthca on registration or any contest forms ? Is it possile to Automate Webpages with Falsh using QTP..?
what is the difference betn QTP 8.0 AND PREVIOUS VERSION
Explain sub procedure of vbscript.
what is object spy
How to recognise the webelement and verifying that webelement is enabled?
If an application name is changes frequently i.e while recording it has name "Window1" and then while running its "Windows2" in this case how does QTP handles?
difference between GetROProperty and GetTOProperty
I have a drop down box to show selected number of records in result page.It contains 4 items like 10, 25,50 and 100. when i was recordes script for seelcting each item and checking selecting number of records in the result page( it is in the same page in the table format)it is generating a new page with same controls( objects) in the OR. how to avaid these in OR? is it possible to write DP for only these lines?, remaining(remaingin lines of code) objects i want use from OR only. One more problemis if change ( add /remove properties of an OBJECT in OR , my ( recorded )application is not running.
how do u handle an object with out name in our application using QTP 9.2?
Hi,All How to create a link in excel sheet using qtp
I am getting an error "failed to open the XML checkpoint result viewer" in result window,after clicking on "View XML checkpoint results".Someone suggest me settings,if any...