Micro Focus QTP (UFT) Forums
calling single script to identify web pages dynamically - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: calling single script to identify web pages dynamically (/Thread-calling-single-script-to-identify-web-pages-dynamically)



calling single script to identify web pages dynamically - Anj - 01-22-2008

Can someone help me with a QTP script that would help read web pages dynamically, identify browser name and page name without writing script for each page with the respective names. So that i can call the same script wherever required.

Any help on this would be great!

Anj


RE: calling single script to identify web pages dynamically - Rajashekar Gouda - 01-22-2008

Hi Anj,

I am not clear with ur question,
as per my exp if the web page properties are same the we can use the properies for wherever required.
For example if the page name is
Browser("name:=google").Page(title:=goolge")
This u can used repatively wherever required provided the page is name has not changed.

If page propery changed then we need to use the respected browser and Page properties.

Regards
Raj


RE: calling single script to identify web pages dynamically - Anj - 01-22-2008

Thx Raj, but let me explain my problem her

It is an application with web pages having different names(Browser and page names), so currently i have a script to check a logo name in each page. I have pasted this script on each page since each page has a different Browser/page name. I want a single script which can dynamically get the Browser/page name of the page i am on. And paste the script at one location and call it on every page.

There is a continue button on each page to move to next page.

Hope my question is clear.

Thx,Anj