TC Finding a button but doesn't click on it when the test is run
Having an issue where I've remapped a search button in our app in test as TC couldn't find it. TC now highlights the search button and can find it. However when I run my test. TC can't find the object unless the application was already open when the test started.
Sounds like the object heirarchy (map) is different at runtime.
So, outside a run, you can click the map object and highlight on screen and all is well.
But, during a run, it fails to find it.
Which leaves two possibilities:
1. As I said, the heirarchy is different (for reasons unknown) when run via your test. Have you put a break point in on the line it attempts the click? So when it pauses, go into the name map and see if the mapped object highlights on screen.
2. It's a timing issue. So the button is neither visible and/or enabled at the point your test it trying to click it. Again, add a break point, make sure it can see it OK, then restart it. If it find it OK, and works OK after the pause, you have timing issues.