Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Descriptive Programming for Web Page
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi,

I would like to write DP for Web page...

Ex:

Code:
Set desc=description.Create
desc("    ").Value = "Yahoo"
desc("Class Name").value= "Browser"

Can anyone help me in that. Please send the example Code.

Thanks
Shrinivas
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
Code:
desc("micclass")="Browser"
desc("Title")="Yahoo"
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
Thanks guocnc for the reply.

I tried that and it is working ok.

I have Posted a new query for FRAME, please check the same.

Like following script is working ok
Code:
Browser(var1).Page(var2).WebButton(var3).click

But now for some Webpages i have a Frame - WebElement in between. like
Code:
Browser(var1).Page(var2).Frame(var3).WebButton(var4).click
For Frame:
Code:
var3("micclass").value = "WebElement"
var3("name").value = "nav"

--> not working for me

Can you please suggest me how would be the DP for FRAME

Thanks
Shrinivas
Reply
#4
Solved: 11 Years, 4 Months, 3 Weeks ago
Logic of writing DP remains the same for all objects. If you understand the concept behind Object identification, writing any DP statements shouldn't be a problem. Please refer this post to get an understanding of how qtp recognize objects Also this post on Descriptive programming in QTP

Here is a step by step procedure for you -

  1. Record the object
  2. Go to OR and find out which property QTP has used to identify the object.
  3. Use the same properties in the DP statements.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#5
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi Ankur,
gr8....it worked fine

After analyzing your given links, added some more properties into test from Object Identification --> Web and then it worked absolutely fine.

Thanks a lot for you help.

Have a nice day
Shrinivas
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can QTP handle slick grid table in a web page qtplearner88 2 4,566 10-01-2019, 10:44 AM
Last Post: shilpi952
  Dynamic descriptive Programming issue in Terminal Emulator cprasad 1 1,999 04-25-2019, 08:17 PM
Last Post: Ankur
  UFT Tool support with Descriptive programming laks 1 1,845 07-05-2018, 05:31 PM
Last Post: Ankur
  UFT Descriptive Programming objects not identified in a secure & private intranet env bugfinder2 1 1,891 06-07-2017, 01:41 PM
Last Post: Ankur
  UFT descriptive programming Browser("creationtime:=-1") not always working SOUMYADEEP 0 3,117 01-20-2017, 01:53 AM
Last Post: SOUMYADEEP

Forum Jump:


Users browsing this thread: 1 Guest(s)