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 |
What are the various versions of QTP that have been released so far? Please also mention the year of release for each version
3. How to handle the exceptions using recovery secnario manager in Qtp?
How to modify the text checkpoint?
What is QTP and the use of QTP in TD?
What is descriptive.create () in QTP?
Explain the concept of object repository and how qtp recognises objects?
What u say as experience(Interview) "TELL ME ABOUT UR SELf"? As a Fresher(interview) What u Say?
How many types of recording modes in qtp? Describe each type with an example where we use them?
I have written some script in QTP and i added those objects in Object Repository. All written script has been executed successfully. After few days when i tried to execute the same script i got error message "objects not found in Object Repositiry". How can we solve this issue?
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
How many ways we can parameterize data in quicktest professional (qtp)?
After running scripts how you report results ,there is any specific report form