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

Showing Answers 1 - 16 of 16 Answers

nanda

  • Nov 4th, 2007
 

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

  Was this answer useful?  Yes

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

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions