Question
Methods not working in Automation but Working in TestMethods
I am trying to automate FISERV DNA windows application and most of the time, test control methods work on most of the controls I interrogated. But in the automation, the same methods just fails. No error or anything. Tried re-interrogating controls, tried checking match rules and it all seems to be fine.
This is not the first time I am facing this issue. I had posted similar questions before and there was no satisfactory reply.
Why is it that Testcontrolmethods work and the same methods in automation fail? this doesn't make any sense to me.
Hi NaifA336,
It's difficult to analyze without checking the log and automation on your side, but I think it might be a timing problem.
When using test method in interrogation, you've opened the page a while, everything has enough time to get ready. But when the same method gets called in automation, it's super fast after the control being matched, maybe there's some javascript not called or some other UI control still not matched.
Maybe you want to check the events happened in the page.