Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Object Identification for similar objects
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi

I am automating Windows Application based on .Net. There is one main object Role. Under this, there are many tabs(swfobject :class name) as:

Adminstration
Registration
Transactions
Reports
Tool Box
External Integration

I have to click Adminstration,Registration and Reports in my script. But the problem is all the properties of these above tabs is same as their main object viz. Role. QTP is not able to identify all the above tabs.

I tried to do recording to click the object.I got different statement for same object(eg.Registration) everytime as:

Code:
swfwindow("Roles Form").swfobject("Roles").click 166,12
swfwindow("Roles Form").swfobject("Roles").click 164,11
swfwindow("Roles Form").swfobject("Roles").click 169,7

These numbers after click keep on changing everytime.

Please tell how to click Adminstration, Registration and Reports.

Thanks
-Taran
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Taran,

Please follow the approach and hope it will solve ur issue.

Here objects are identyfying with x,y coordinates so we will proeed as per that only.
1. First find out the coordinates for "Administration" tab
This can be done using "GetTextLocation" (As it is a .Net application it will support this method)
2. Pass the x,y coordinates as arguments for click function.

Please let me know for further clarification.


Regards,
Venkat. Batchu
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Venkat,

I have seen all the tabs property through Object Spy. All the properties of these objects are same even x and y co -ordinates also.

Thanks
-Taran
Reply
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Taran,

It seems u might not be familiar with GetTextLocation property i hope by using this we can get the coordinates and pass the same thing for the Click.

Hope it will solve now....


Regards,
Venkat. Batchu
Reply
#5
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi Venkat

Thanks, now it is working perfectly.



-Taran
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Kendo UI Object Identification vasavi.vasavi 5 4,173 07-10-2020, 10:19 AM
Last Post: mariamattathil93@gmail.com
Question Is there a way to create dynamic objects by declaring the type of object as parameter lotos 3 2,205 11-08-2017, 11:15 PM
Last Post: lotos
  Explain about object identification vikram 2 4,474 11-12-2014, 10:42 AM
Last Post: vinod123
  GMAIL Object Identification sidqtp 2 3,616 11-08-2014, 10:12 AM
Last Post: vinod123
  How to make a function for an object that has a large number of parent objects Shroomsday 1 2,399 01-28-2014, 11:15 PM
Last Post: jacosta

Forum Jump:


Users browsing this thread: 1 Guest(s)