GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing Tools  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 585 of 684    Print  
Descriptive programming in QTP for a website .
How do you use descriptive programming technique for the following statement:

Browser("Browser").Page("Yahoo! Mail - taslim123456@yah").Frame("Frame").WebElement("WebElement").Exist



  
Total Answers and Comments: 6 Last Update: February 22, 2008     Asked by: taslim 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 04, 2007 07:35:46   #1  
nanda        

RE: Descriptive programming in QTP for a website .
Hi...

u can write like this:


browser( Name: browser Name ).page( title: page title ).web table( name: table name ) like this..

u can view these properties by using object spy...

do remember that..

we can write descriptive programming by using Object Identification and Object spy dialog boxes.

Object Identification dialog box use for knowing which properties we have to write to identify an object and Object spy uses for knowing time value of those properties

 
Is this answer useful? Yes | No
December 18, 2007 16:00:12   #2  
Anshoo_Arora Member Since: October 2007   Contribution: 384    

RE: Descriptive programming in QTP for a website .
I haven't tried this but chances are that Page Frame and WebElement may have dynamic values every time a new user logs on. Try using DP with regex; something like this:

Browser("micClass: Browser").Page("micClass: Page").Frame("name: name.*").WebElement("name: name.*").Exist

 
Is this answer useful? Yes | No
February 12, 2008 16:12:05   #3  
newqtp Member Since: January 2008   Contribution: 30    

RE: Descriptive programming in QTP for a website .
how do you use object identification box??
 
Is this answer useful? Yes | No
February 21, 2008 04:27:22   #4  
NawabShaikh Member Since: January 2007   Contribution: 238    

RE: Descriptive programming in QTP for a website .
Use the Pointed Finger button to get the Focus on any object that you want to Learn and then hit the click you will get the properties of that Object.

hope thats precise

regards
Nawab

 
Is this answer useful? Yes | No
February 21, 2008 10:36:03   #5  
newqtp Member Since: January 2008   Contribution: 30    

RE: Descriptive programming in QTP for a website .

is Object Identification box and object spy same ? As you have mentioned here This is spying Object property using object spy?
Thanks a lot.


 
Is this answer useful? Yes | No
February 22, 2008 02:42:07   #6  
NawabShaikh Member Since: January 2007   Contribution: 238    

RE: Descriptive programming in QTP for a website .
Yes!!!
If you have access to QTP Manual please cross-check

Regards

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape