How to get Links count in an web application,without
descriptive programming?
Answer Posted / priya
here is an example to get the link count in google page
Just try out this
SystemUtil.Run ("www.google.com")
Set Links = Browser("title:=.*").Page("title:=.*").Object.Links
Msgbox "Total links: " & Links.Length
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
The hybrid framework can be implemented for any application. Is it true?
Explain calling sub procedure.
When Recovery scenario actually starts while testing the application?
PLEASE TELL ME WHEN DO YOU USE THE OBJECT SPY AT RUN TIME
If u r using library files (Instead of Check Points) , How do u do bitmap check ?
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.
Is it possible to call from one action to another action in qtp?
How to break the object spy ?
What are the 3 main stages involved in testing with qtp?
Why qtp always start action1 and does not start action?
ACTUALLY I AM WORKING IN THE DISTRIBUTION DOMAIN.MY COMPANY IS PROVIDING DISTRIBUTION SOFTWARE FOR PHARMA AND FMCG DISTRIBUTORS.HERE I AM USING QTP 9.2.HERE IN MY APPLICATION WHILE RECORDING ONE WINDOW APPEARS.IN THAT I CAN SELECT THE ITEM OR NO NEED TO SELECT.BUT WHILE RUNNING THE SAME SCRIPT THE WINDOW MAY NOT APPEAR OR APPEAR.HOW TO WRITE SCRIPT FOR THIS
Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?
How many lines of code in each script of QTP?
How is recording done when a application is over lapping the QTP application it gives a message object not recorded