There are some links on the web page,write a script to
count and click those links and check the text on the page
displayed on clicking the links.
Answers were Sorted based on User's Feedback
Answer / 86kris
I agree with the answer by preethi. I guess there should be a small change in the "For loop"
It has to be
For i=0 to countLinks - 1
Rest everything is fine.
Kindly correct me if i am wrong!
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / preethi
Set obj=Description.Create()
obj("micclass").value="Link"
Set links=Browser("Gmail: Email from Google").Page("Gmail: Email from Google").ChildObjects(obj)
countLinks=links.Count
msgbox "Num of links"& links.Count
For i=0 to countLinks
'links(i).click
text= links(i).GetROProperty("Text")
msgbox text
'Browser("Gmail: Email from Google").Page("Gmail: Email from Google").ChildObjects(obj).
next
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / xyz
The question here is to verify the text on the "page" after
clicking the link. I believe the above code will display
the text of the link. Please correct me if I am wrong.
Thank you.
| Is This Answer Correct ? | 1 Yes | 0 No |
Could some one explain me how to create folder on the desktop from QTP?? This is an interview question
Can anybody help me by sharing the code for checkbox in qtp using vbscript.
How software automation specialist enter steps in the Expert View?
How many types of Recordings are there in QTP and what are they?
7 Answers Dangote, First Indian Corporation,
from where we will retrieve data for data driven tests in qtp?
vb script for calling one function to the another function
hi guys this is Keerthi, I am searching for job,so I want to know which questions are intervier asking on QTP&MANUAL&QUALITY CENTER,can u send Any one questions&Answers to my id:chinna.ammi@yahoo.co.in
Hi Friendss..., can any body help me.. 1. Tell me your achievements(Technically)..? 2. Tell me your strengths(Technically) and weakness(Technical)..? 3. Why are you looking for change..?
Explain object spy in qtp.
What r the features of QTP9.2,other than QTP8.0 What r the extre features of QTP9.2.
can any body plz help by sending the qtp docs and qtp ppt's? this is my mail id:murali.padeti@gmail.com
There are two tabs in the application suppose, A and B.On clicking the tab "A" one table grid will open. if u click on tab "B" Another table gride will open. Now can I do some operations on both table grids with a single table grid properties in the object repository? I have added all objects of the first table grid into the object repository Now iam checking enable/disable status of "save button" in the second table grid my code is like this val=javawindow("zseries").javabutton("save").getroproperty ("enabled") when I highlighting the save button in the object repository by keeping open the second tablegrid on the application.It is displaying the popup message"The selected object can not be found in the application" can I use properties of one table grid for both tabs if so how it is possible. Can anyone help me