Colin_McCrae wrote:
So it clicks the "Nowy" button OK?
So the line it fails on is: NFZKom.WinFormsObject("cmsPrint").Click(176, 77);
Right?
Yes.
Colin_McCrae wrote:
What is the "cmsPrint" object? Is this a popout form? I don't see a popout form in the screen capture from your failed test?
It is that popout menu on screen 01 with lots of 'Rachunek' rows. Properties are on screen 02.
Colin_McCrae wrote:
Couple of things spring to mind:
1. Timing. You are trying to click "cmsPrint" before it has had a chance to render it to the screen.
2. Identification properties of "cmsPrint". Are you sure they are good? It's not using some sort of dynamic ID to try and identify it or something?
1. I have set autodelay (500ms) in project options. Also added delay before click. Didn't help
2. Every time it has different Id, ControlId is the same = 0.
More info: as you can see on screen 01 (partially hidden) Rachunek menu has several options:
-Nowy
-Korekta
-Usun
-Podglad etc.
When I click one, every popout menu is recognized as WinFormsObject("cmsPrint"), maybe that is the problem.
If I wont find solution, I will try to force dev team to rebuild cmsPrint ;)