Write a QTP script to print all the link names displayed in
a web page
Answers were Sorted based on User's Feedback
Answer / xyz
set linkObj=description.create
linkObj("micclass")="link"
set linkChildObj=B().p().childobjects(linkObj)
childCount=linkChildObj.count
for i=0 to childCount-1
linkName=linkChildObj(i).getROProperty("innertext")
msgbox linkName
next
| Is This Answer Correct ? | 52 Yes | 10 No |
Answer / siba
set linkObj=description.create()
linkObj("micclass").value="link"
set linkChildObj=Browser("Google Accounts").page("Google
Accounts").childobjects(linkObj)
childCount=linkChildObj.count
msgbox(childCount)
for i=0 to childCount-1
linkName=linkChildObj(i).getROProperty("innertext")
print( linkName)
next
| Is This Answer Correct ? | 16 Yes | 2 No |
Answer / mani
go to any web page click on any link..store it in OR
manager...Then according to the browser name and page name
write the script
Example:
Browser("name").Page("name").weblink
("destination").GetROproperty("number of links")
| Is This Answer Correct ? | 11 Yes | 16 No |
Answer / bidyut prava
Browser("name").Page("name").Link("destination").Click
| Is This Answer Correct ? | 4 Yes | 11 No |
how to load all resource files(function libraries,object repositories etc) into tests without associating them?
How to connect the remote desktop using QTP 9.2 explain the method or procedure?
0 Answers Magna Infotech, Oracle,
How to get the particular property value?
Write the code for select the 5 values from drop down list. drop down list having the 10 values.
Reverse a string keeping the words in the string as it is. E.G. "Quick Test Professional" O/P "Professional Test Quick"
There are 4 webpages in an application, in third page there is one cancel button i want to click that cancel button only, how can I click that cancel buttton ?
How many types of recording facility are available in QTP?
how to call a funtion in a script? i have saved the login scipt in notepad. with extension .vbs. But when i am calling the function with the keyword CALL <Function Name>. its not working out. can any one give me a clue how to call the external functions. with example.
Hi All, I am new to QTP but i was trained on winrunner before. My problem is..QTP 8.2 was unable to record my application which is a java app. By selecting smart identification, i was somehow able to record the test BUT QTP cant run the test! Can anyone help me in walking through this problem..Is java addin really necessary for this?? Is there anyways i can run the test successfully? I am not sure whats going wrong in my testing.Please do help me asap as i need to submit the report early. Thanks in advance
What is the difference between QTP 8.2 and QTP 9.2 ?
What are the Features & Benefits of Quick Test Pro ?
How to find local host name using QTP?