07-31-2008, 02:27 PM
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!
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!