Descriptive programming for different browser and page -Error - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Descriptive programming for different browser and page -Error (/Thread-Descriptive-programming-for-different-browser-and-page-Error) |
Descriptive programming for different browser and page -Error - Uma - 08-23-2011 Hi, Below is my code, Code: If Browser("opentitle:="&result,"application version:=internet explorer 7").Exist Then Here I am able to get the browser. for the page,I am passing exactely same properties, what I got it from Object,but it always printing no page. [I am passing the title and url and i am directly giving height value] Any help? Thanks Uma RE: Descriptive programming for different browser and page -Error - parminderdhiman84 - 08-23-2011 Hi, For the page, you are skipping browser and hence not following the basic hierarchy that it required for qtp to identify the objects. Use the below for the page : Code: Browser("opentitle:="&result,"application version:=internet explorer 7").Page("title:="&pge1,"height:=593","url:="&purl).Exist Regards, Parminder RE: Descriptive programming for different browser and page -Error - Uma - 08-24-2011 Hi parminder, You are correct,Now it is working. Thank you. Uma |