Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Identifying Dynamic Objects in QTP
#1
Rolleyes 
Hi All,
Can any body tell me how can I identify Dynamic objects in QTP and perform action on that using descriptive programming?
Actually i am struck, waiting for reply!!!!!!!!!!!

Thanks in advance
Reply
#2
Hi Ritu,

Can you give me more details. Actually by using DP and Regular expressions we can work with Dynamic Objects in QTP.

Provide me you exact requirement so that i can help you.
Thanks,
SUpputuri
Reply
#3
Hi QTPKing,

Actually i want to identify some text like "My Certifications (48)" , "1 - 48 of 48 records". these both are recognized as single objects. Here numeric values are dynamic, I want to recognize this objects and then want to fetch the new count to verify my case

Thanks
Reply
#4
Hi Ritu,

Use Regular Expression for this numeric values .
for eg: in the object repository for the object set the property value as \d and enable the regular expression.This syntax will accept 0-9 digits.

Regards
Bala
Reply
#5
Hi Bala,
Thanks for ur reply
Can u tell me the way to do through descriptive programming, actually i dont want keep my object in Object repository.
Regds,
Ritu
Reply
#6
Hi Ritu,

Eg:-
Windows("value:=\d").click

like this script use in your application
kindly let me know if u have anyquery

Regards
Bala
Reply
#7
Hi Bala,

I used it this way but its not working

Code:
WebElement("htmltag:=B","innertext:=My Certifications (^\d$)")

Please look into this
Reply
#8
Hi Ritu,

using the object spy capture the webelement in ur application , so the webelement have some properties if the webelement have value property set like this,

eg:
WebElement("htmltag:=B","value:=\d")

kindly let me know if u have anyquery


Regards
Bala
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Facing a problem while identifying Angular JS objects in a web page vangasantosh 0 1,546 12-20-2017, 01:26 PM
Last Post: vangasantosh
  UFT 11.53 not identifying VB objects wrapped in activeX controls jainrash 0 2,962 07-02-2014, 03:07 PM
Last Post: jainrash
  QTP Flex plug-in not identifying custom objects kamalteja 0 3,104 10-19-2012, 09:00 PM
Last Post: kamalteja
  QTP not identifying the Windows objects Tinu 9 10,848 09-07-2012, 12:40 PM
Last Post: anushachanda
  QTP 11 not identifying web objects using string based DP ankit5815 1 3,797 07-16-2012, 10:36 AM
Last Post: sshukla12

Forum Jump:


Users browsing this thread: 1 Guest(s)