Question asked by visitor udaykanth
Object location changing in the screen. Tool is not identifying that object ....
Then how to identify that object in QTP.. tell me all the possible cases to identify ..
Question asked by visitor udaykanth
Object location changing in the screen. Tool is not identifying that object ....
Then how to identify that object in QTP.. tell me all the possible cases to identify ..
Hi,
Try to add the object manually to the repository(Hope u know how to do that) or else
You can try creating Virtual objects
Please let me know if u want the info in detail
kamal
If it is that only the object location is changing then adding the object to OR and then scripting will be enough. But if the object property is changing then it might be a problem
Hey.. i have a similar problem,
I have to automate a test case where i have to Check some data in a table on a web page..
The problem is i am identifying the table based on location only,and storing it in GUI map.
for eg : the description of any table will be like
{
class: object,
MSW_class: html_table,
location: 18
}
..
Is there any method where i can make the object location independent??
For example, can i add ID of the table (which will be unique in the web page) to this description somehow and avoid identifying the table by its location alone>>>??
It will of a great help to me since the location keeps changing..!!
Hi,
If object location is keeps changing then you have to
Remove x,y coordinates from object repository.
Then run, it will work..
Arunsingh Rajaputra
Last edited by rajaputra; 02-28-2008 at 05:59 AM.
Hey..
Thanks for the help..!
I am very new to automation and i really dont know about QTP, object repository etc.I better learn and get back.
Perhaps i should reframe my question this way.
What i wanted to know was if i can somehow make the script identify the table even when the location changes,
for eg:
(Obj_exists(tableLogicalName)==E_OK)
gives false when location changes,
when i learn the table from UI,to copy it to the GUI map,i get the description of the table as
{
class: object,
MSW_class: html_table,
location: 6
} or similar, only the location of the table changes for each table in the UI.
i thought if i can perhaps delete the location from the description and add id of the table or something which is unique for a table,even if the location changes,
my script will identify the table, and
(Obj_exists(tableLogicalName)==E_OK) would return me true.,,
Can i edit the GUI map somehow to make the table independent of location, but dependent on ID of the table??
Thanks...!
Ill have to learn it.
Thanks..!