Hi Paulo
From your description it seems rather clear. I take it that nothing is written in the username and password.
Each application has a different configuration so it is very difficult to give you an xml that works, unless someone has configured the exact same application.
As Christian is mentioning it is paramount to indicate the right window title for the TL to recognize. To do that, if you are not sure about the window name you can start the learning tool and hover over the window, then copy the name. The name has to be exact.
You may as well use mouseclick and keystroke to enter the username and password as well, instead of trying to choose the actual instance name
Please make sure to test it all with the debug utility before going to PAM
If this all does not work then my advice would be to open a case to take a look
Best regards