01-03-2011, 02:24 PM
Ravi,
there are two things here,
1. Object identification
2. Identifying object based on index.
We will have to deal with each one individually. Here is a hint,
For the first case,
Object Identification:
Webcheckbox should be easily identified if the Web addin is selected. If not, try some basic trouble checks like,
1. Close all. Open QTP, Then Open the application. See if that helps.
2. Spy and try to find if there is any other layer which is preventing QTP from talking to the application.
3. Talk to dev team to see if they can help you out with the identification.
Index Based :
This is pretty easy, if you know what you want to do.For eg: if i know that the name of an webcheckbox is "All of the above" then i would loop through all the checkboxes to see if i get the text "all of the above" and then find the index of it and select it.
Present your case and we should be able to flow forward.
there are two things here,
1. Object identification
2. Identifying object based on index.
We will have to deal with each one individually. Here is a hint,
For the first case,
Object Identification:
Webcheckbox should be easily identified if the Web addin is selected. If not, try some basic trouble checks like,
1. Close all. Open QTP, Then Open the application. See if that helps.
2. Spy and try to find if there is any other layer which is preventing QTP from talking to the application.
3. Talk to dev team to see if they can help you out with the identification.
Index Based :
This is pretty easy, if you know what you want to do.For eg: if i know that the name of an webcheckbox is "All of the above" then i would loop through all the checkboxes to see if i get the text "all of the above" and then find the index of it and select it.
Present your case and we should be able to flow forward.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.