I am trying to automate a report request web page. I created a repository for the first report, renamed objects, organized them. All went well and the automation works. I’m starting on my second automation and started a new project. I tried reusing the repository from the first project, but kept getting the error “The indicated element does not belong to the target application/browser”, even though if I try to highlight it in the Repository, it shows up fine. So I started over and just used a local Project UI Descriptors. Captured all the items on the page, organized them and now trying to create my script. All the objects are recognized and successfully highlight on the web page.
I start with a Use Application/Browser activity, then 3 Excel Activities (Process Scope, Use File, For Each Row). Here’s the strangeness. If I put an activity in the For Each Row sequence, I get the error message above. If I move it above to Use File, Process Scope or Use Application, it’s recognized fine. Even stranger, if I switch the object to another, then switch it back to the original, it recognizes it the 2nd time.
Any ideas on why my objects aren’t recognized initially, but switching them out, then back in magically makes them work? Or why they work outside of the For Each sequence, but not inside?