【问题标题】:How do I automate a Java Applet using the Java Access Bridge?如何使用 Java Access Bridge 自动化 Java Applet?
【发布时间】:2017-10-16 23:28:59
【问题描述】:

我需要自动化位于仅 IE 网站内的 Java Applet。我知道我可以使用 Java Access Bridge 与 Java 应用程序进行交互,但我无法找到如何将它连接到 Applet。

我知道一个名为GetAccessibleContextFromHWND(..) 的Java Bridge 方法,我认为我可以使用它。不幸的是,当我使用 Spy++ 尝试获取 Applet 的 HWND 时,我返回空白,因此使用通常的 FindWindow(..) Windows API 函数似乎无法完成。

如何使用 Java Access Bridge 访问和控制 Java Applet?

【问题讨论】:

标签: java automation applet java-access-bridge


【解决方案1】:
1.Find Applet tag from HTML page and get position(Height/Width) of it.

2.Move your cursor toward Applet center position with reference of IE window.

3.Use **getAccessibleContextAt** API and use Applet x,y position.

4.Get Accesiblecontext from above API.

5.Iterate to root level Accesiblecontext. Finally you will get first object of Applet window.

【讨论】:

    猜你喜欢
    • 2013-10-04
    • 2015-10-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-09-27
    • 2013-02-12
    • 2022-01-23
    相关资源
    最近更新 更多