how do find current links in webpage for ex: in
yahoowebsite today mainpage is having 50 links and next day
same page is having 60 links. if i run same programe it
should display total links in webpage ?
Answer Posted / sudheerreddym
Set link obj=description.Create
linkobj("micclass").value="link"
Set link childobjs=browser("Yahoo").Page("Yahoo").chldobjects(linkobj)childcount=link childobjs.Count
for i=0 to child Count-1
msgbox link childobjs(i).getRoproperty("innertext")
next
if u want to click on the last link on that page:
browser("Yahoo").page("Yahoo").link(index:="&childCount-1).cclick
set linkobj=nothing
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the parameterization?
What are the advantages of Object Repository?
HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...
Explain the concept of object repository and how quicktest professional (qtp) recognises objects?
Can testing be done on the production system, or will a separate test system be required? How are browser caching, variations in browser option settings, dial-up connection variabilities, and real-world internet 'traffic congestion' problems to be accounted for in testing?
how to know no.of mails in our g mail by using vb-script
i have to login into gmail loginpage i have to pass testcase into userid and password by using functions. the test case of user id is it should take only lowerletters alphabetin between 4 to 6 length.it should not take spectial letters.it should not take numbers.testcase for password is it should take numbers and it should not take alphabets note the following things must happen 1 when i give correct password and userid that password and userid should be seen in QTP result and notepad,xl sheet 2 when i gave in valid password the system willgive message please give valid password that particular messaage should be seen in QTP result,norepa and xl sheet
What is RTM (require ment tracebulity marix) fromate?
hi nani my doubt is how does qtp process metrix related to software process.
What is the descriptive programming?
How can you write the scripts that operate on different objects depending on run-time information?
Sql questions to find second max salary and how to use joins
What are the advantages of qtp?
How many types of recording facility are available in quicktest professional (qtp)?
What should we say if interviewer asks "What is ur project architecture?".......Can any one help me with clear information.?????????