简体   繁体   English

Marathon OSS:如何检查 JAVA Swing GUI 上的元素

[英]Marathon OSS: How to inspect elements on JAVA Swing GUI

I am exploring Marathon Open Source Java Driver for automation of my Java Swing GUI application.我正在探索 Marathon 开源 Java 驱动程序,用于自动化我的 Java Swing GUI 应用程序。 Added the maven dependency in my pom.xml and downloaded marathon-5.4.0.0 zip file.在我的 pom.xml 中添加了 maven 依赖项并下载了 marathon-5.4.0.0 zip 文件。 Unzipped the marathon zip file in C:/ drive.在 C:/ 驱动器中解压马拉松 zip 文件。

Now, I launched my Java Swing based application.现在,我启动了基于 Java Swing 的应用程序。 I want to be able to inspect the elements on my Java Swing application through the marathon-5.4.0.0 which I just unzipped.我希望能够通过我刚刚解压缩的 marathon-5.4.0.0 检查我的 Java Swing 应用程序中的元素。 Added MARATHON_HOME environment variable as well.还添加了 MARATHON_HOME 环境变量。

Can somebody tell me which application/jar I need to invoke (under marathon-5.4.0.0) in order to inspect the elements on my application?有人可以告诉我我需要调用哪个应用程序/jar(在 marathon-5.4.0.0 下)以检查我的应用程序中的元素吗? This will help me use the Marathon Java Driver and build a proper object repository.这将帮助我使用 Marathon Java 驱动程序并构建适当的 object 存储库。

My JDK currently points to Java 11, do I need to use JDK 8 only in order to work with it?我的 JDK 目前指向 Java 11,我是否只需要使用 JDK 8 才能使用它?

Please let me know if any more information is needed.如果需要更多信息,请告诉我。

Thanks, Anukul谢谢, 阿努库尔

Marathon java driver doesn't have inspect object. Marathon java 驱动程序没有检查 object。 For that Marathon GUI version needs to be used.为此,需要使用 Marathon GUI 版本。

Note: I'm also a contributor of Marathon.注意:我也是马拉松的贡献者。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM