Java 使用appium为FrameMaker创建自动化Windows测试-检查问题

Java 使用appium为FrameMaker创建自动化Windows测试-检查问题,java,automated-tests,appium,inspector,appium-desktop,Java,Automated Tests,Appium,Inspector,Appium Desktop,我想知道是否有人可以帮助我使用appium检查元素,以检查FrameMaker元素,从而为该应用程序创建自动化测试 问题是,当我想在工作区、菜单和文本首选项中获取元素时。。。我可以直接获得一些windows(FrameMaker)元素 我已经使用了windows SDK检查器和appium检查器,但没有结果 第一个Windows Ok: 但是当我进入应用程序时,我看不到工作区元素! 我正在尝试使用java为此应用程序编写自动化测试: import java.net.URL; import j

我想知道是否有人可以帮助我使用appium检查元素,以检查FrameMaker元素,从而为该应用程序创建自动化测试

问题是,当我想在工作区、菜单和文本首选项中获取元素时。。。我可以直接获得一些windows(FrameMaker)元素

我已经使用了windows SDK检查器和appium检查器,但没有结果

第一个Windows Ok:

但是当我进入应用程序时,我看不到工作区元素!

我正在尝试使用java为此应用程序编写自动化测试:

import java.net.URL;
import java.util.List;
import java.util.concurrent.TimeUnit;

import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;

import io.appium.java_client.windows.WindowsDriver;

public class RemoteConnectionTest {

    private static WindowsDriver connexionSession = null;

    @BeforeClass
    public static void setup() {
        try {
            DesiredCapabilities capabilities = new DesiredCapabilities();
            capabilities.setCapability("app",
                "D:\\AppsDev\\AdobeFramemaker2019\\Adobe FrameMaker 2019\\FrameMaker.exe");

            capabilities.setCapability("deviceName", "DESKTOP-F7DUTDS");
            // 192.168.1.70
            connexionSession = new WindowsDriver(new URL("http://192.168.0.109:4723/wd/hub"), capabilities);
            connexionSession.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Test
    public void creation_d_un_nouveau_document() throws InterruptedException {
        // j'attends
        Thread.sleep(10 * 1000);
        //
        connexionSession.findElementByName("Fichier").click();
        connexionSession.findElementByName("Fichier").click();
        assertTrue("Je ne peux pas Clicker sur le menu Fichier afin d'utiliser l'application", true);

        // nouveau
        connexionSession.getKeyboard().releaseKey(Keys.chord(Keys.CONTROL, "n"));
        assertTrue("Je ne peut pas clicker sur nouveau pour lancer la création du document", true);
    }
}
或者,如果有人能在windows测试自动化方面帮助我,我会非常高兴