appium是否支持Windows桌面应用程序(在QT中开发)自动化

时间:2017-02-09 04:10:05

标签: appium

我没有遇到这样的元素异常,即使我提供了有效的元素属性,即名称。

Appium是否支持在QT中开发的Windows应用程序?       [识别TestClass]     公共类UnitTest1     {         protected const string WindowsApplicationDriverUrl =“http://127.0.0.1:4723/wd/hub”;         受保护的静态WindowsDriver会话;         protected static RemoteWebElement Result;

    [ClassInitialize]
    public static void setup(TestContext context)
    {
        // Launch the  app
        DesiredCapabilities appCapabilities = new DesiredCapabilities();
      appCapabilities.SetCapability("platformName", "Windows");
       appCapabilities.SetCapability("deviceName", "WindowsPC");
        appCapabilities.SetCapability("app", @"C:\****\Plus\abcd.exe");

        Session = new WindowsDriver<WindowsElement>(new Uri("http://127.0.0.1:4723/wd/hub"), appCapabilities);
        Assert.IsNotNull(Session);
        Session.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(60));
    }
    [TestMethod]
    public void lsapVerfication()
    {
        Session.FindElementByName("Logs").Click();
    }

0 个答案:

没有答案