Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to identify the object when it is dynamically changing behavior
#11
Solved: 11 Years, 3 Months, 2 Weeks ago
if ur not using descriptive , u can add the objects and check using browser().page().link(Status).Exist or WebElement(Status).Exist.

if ur using descriptive, browser().page().link("html tag:=A","text:=Status").Exist or browser().page().link("html tag:=WebElement","text:=Status").Exist

u can also use a flag inside if condition and use it to check whether link/webelement is present.
Correct me if am wrong. i am new to QTP.

Regards,
Mallesh
Reply
#12
Solved: 11 Years, 3 Months, 2 Weeks ago
Code:
set desc=description.create
desc("micclass").value="WebLink"

set obj=browser().page().webtable().childobjects(desc)

for i=0 to obj.count-1
linkname=obj(i).getroproperty("name")
msgbox linkname
next
Reply
#13
Solved: 11 Years, 3 Months, 2 Weeks ago
Use GetRoProperty of the object and assigned it to an variable and use the variable in the place of the set value in the case of webedit
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Changing Data in the application newbieny 0 762 07-17-2019, 07:11 PM
Last Post: newbieny
  Unable to identify Child Object for a window application created using C#. ssanjeev 3 6,215 03-27-2017, 05:38 AM
Last Post: ankita
  How to identify Jquery slider object and use the slider in QTP? axn700 0 2,679 10-22-2015, 12:03 PM
Last Post: axn700
  When UFT Does Not Identify an Object vinod123 4 7,385 06-20-2014, 02:44 PM
Last Post: vinod123
  "Cannot identify object" failure only when script is checked into QC msacks 0 2,024 02-28-2014, 12:40 AM
Last Post: msacks

Forum Jump:


Users browsing this thread: 1 Guest(s)