05-15-2008, 12:17 AM
I am trying to write a test case where it registers a new user each time it is ran. I set up the test with a global data table to use in each field on the registration form. The problem is that the registration form on the app has pull down menus for state and country. I have columns in my table for that information and I have code that tells QTP what to put in there. this is an example of one line of the code:
When I try to run the test, it hangs on this step and gives me an error that says "Cannot identify the specified item of the state_cd object. Confirm that the specified item is included in the object's item collection."
How do I fix this? I have tried to update the object in the Object Identifier and I am either not doing it correctly, or its not working.
Code:
Browser("FindAResident").Page("FindAResident").WebList("state_cd").Select DataTable("STATE_CD", dtGlobalSheet)
When I try to run the test, it hangs on this step and gives me an error that says "Cannot identify the specified item of the state_cd object. Confirm that the specified item is included in the object's item collection."
How do I fix this? I have tried to update the object in the Object Identifier and I am either not doing it correctly, or its not working.