Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make Browser and Page objects generic (undependent of title/etc)
#1
Solved: 10 Years, 9 Months, 2 Weeks ago
I'm new to QTP and use the QTP tool to automate the testing in a web based application. My question is how to make a Browser and/or Page "generic" so that QTP recognize it even if the title of the page changes depending on which brand/model you choose on the intro page. Is this done via regular expression on some browser/page properties or how have you handled/solved this in your web based applications?

At the moment new browser and page objects are created in the local Object Repository each time I re-record choosing a new brand/model. I want a generic Browser and Page object where all the other objects on the sub-pages are collected. This also leads to that a link on a page isn't recognized when a random brand/model has been picked on the page (via a function) and since the link isn't found the test stops/fails.

I would appreciate any guidance that will help me to solve this issue.

Thanks!
Reply


Messages In This Thread
How to make Browser and Page objects generic (undependent of title/etc) - by MGMN - 07-31-2008, 02:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to make QTP Script to work when system gets locked? ramkumarad 6 11,918 11-02-2017, 03:37 PM
Last Post: Divv
  Objects are being recognized as "Windows for Menu item list (Browser-firefox, UFT 12) akhandesh 0 2,374 05-27-2015, 06:29 PM
Last Post: akhandesh
  Local script to make compatible with QC automation2012 1 2,161 01-28-2015, 02:11 PM
Last Post: automation2012
  How to make QTP take the value of a formula in a spreadsheet? utestqa 1 2,962 07-06-2013, 04:13 PM
Last Post: Ankur
  Cannot find the "[ WebButton ]" object's parent "[ Page ]" (class Page) sumitparolkar@gmail.com 4 4,777 05-03-2013, 11:53 PM
Last Post: agarwl.anurag

Forum Jump:


Users browsing this thread: 1 Guest(s)