Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to handle the dynamic links based on search results…?
#1
Not Solved
I have the following steps in my application…

a) go to login page ,give user id and pwd ‘successfully able to login
b) 2nd page is search page … enter the search item and click on submit then
based on the search item the display Link in the same page varies
now if I click on this link will take to corresponding page.

If my search word is housing it will display as ..
Code:
Browser("XYZ: Login").Page("abcPage").Link("Housing and construction").Click
If my search key is real estate then it will display as
Code:
Browser("XYZ: Login").Page("abcPage").Link("Real Estate").Click
How to parameterize the the link name eg:- Housing and construction/Real Estate in the above statement

I tried using below…
Code:
Str = “Housing and construction”
Browser("XYZ: Login").Page("abcPage").Link(""&Str).Click
Did gave me an error when I change Str=”Real Estate” saying not able to recognize the object


Please can anyone have some solutions how to handle this problem
need it very urgent

Thanks
Navya
Reply


Messages In This Thread
How to handle the dynamic links based on search results…? - by navyasatish - 07-23-2008, 05:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Can QTP handle slick grid table in a web page qtplearner88 2 4,300 10-01-2019, 10:44 AM
Last Post: shilpi952
  how to select value from google search box dropdown +QTP prajyot 0 2,678 06-28-2017, 06:30 PM
Last Post: prajyot
  I want to click on all the links in the webtable. These links are nothing but some co abhideshpande001 0 2,576 07-22-2015, 09:36 AM
Last Post: abhideshpande001
  How to Handle Modal Dialogs In QTP Jyobtech 0 2,339 07-22-2015, 01:22 AM
Last Post: Jyobtech
  Search and import data from excel under some rules. nwpulele 2 2,775 02-19-2015, 04:10 AM
Last Post: supputuri

Forum Jump:


Users browsing this thread: 1 Guest(s)