Need help in Automation of Java Swing Desktop Application

Screenshot very clearly points out that the name property of the component is empty. There is however the name that you might think could be used as a locator (name with jaws algorithm but its not supported by jemmy). Documentation in https://robotframework.org/SwingLibrary/SwingLibrary.html clearly says that when using name string, components name has to be set with setName() method of the component and its very obvious that this criteria is not met as the screenshot points out that the name is not set to anything.

  1. Talk to your developers to set the names for needed components.
  2. Hack jemmy to support other properties as locators.
  3. Use indexes, information in Locating components in the swing library keyword documentation. Not Adviced.
1 Like