In google i'm going to search something like "rose", i usually get 10 results in the first page and in 2nd page 10 results and in 3rd 10 results so on upto 10th page 10 results. so if i want to open all the 10 pages 10 results i.e., 100 results and close..what is the DP for this? pls can anyone answer my Question..PLZZZZZ...
Answer Posted / usha
Set d = Description.create
d("micclass").value="Browser"
Set browsers=desktop.ChildObjects(d)
msgbox browsers.count
Set od = Description.create
od("micclass").value="Link"
'od("index").value=j
od("name").value="Rose.*"
od("html tag").value="A"
For i = 0 to browsers.count-1
'msgbox browsers(i).getroproperty("innertext")
Set links=browser("creationtime:="&i).page("name:=.*").childobjects(od)
msgbox links.count
For j = 0 to links.count-1
msgbox links(j).getroproperty("innertext")
Next
Next
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is test object model in quicktest professional?
please post the interview questions for QA position in FACTSET
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
what is test scheduleling?
Mention what are the different types of recording modes in qtp? Which will be used when?
how can i pass a "cript"as a parameter in to a function
How do you compare the structure of 2 tables in database and check whether they are similar using qtp.
How to explain a banking project in interview as a test engineer???
What are the different types of qtp test assets and their extensions?
What is active screen?
Hi all can any one give me roles and responsibilities for QTP (not WINRUNNER)
What is business process testing(bpt) in qtp?
what are all the fileds present in object repository?
How you can make an action as re-usable action?
How you debug your script?