How to put text in forms

A username and password must be entered when starting a Java application. How does it work?

You must use type or Xtype command to fill form

I tried this, but it didn´t work.

Write here the url page to see the form please

What you see is an application window which is startet after launching the desktop-app. I cannot give an url, but a screenshot. I have to fill in “Benutzername” and “Passwort” and then to push the “OK”-Button.

I tried to use XClick and XType in desktop automation mode.

To automate this you need Xclick and Xtype with image, before use Xtype you must set focus witrh Xclick with image

1 Like

Thanks, the following sequenze works:

{
  "Command": "XClick",
  "Target": "Passwort_dpi_96.png",
  "Value": "#left",
  "Description": "Set focus on Passwort-entry-field (green/red)"
},
{
  "Command": "XType",
  "Target": "PASSWORD",
  "Value": "",
  "Description": "Fill in the password"
},
{
  "Command": "XType",
  "Target": "${KEY_ENTER}",
  "Value": "",
  "Description": "Send it to the server"
}