【发布时间】:2019-02-20 07:40:44
【问题描述】:
我使用Selenium.Appium.Windows 为WPF(Windows 演示应用程序)创建了几个测试。我正在使用WinAppDriver 运行测试,但不幸的是,一些 UI 测试因以下错误而失败;任何指针将不胜感激。
消息:
System.InvalidOperationException : 无法定位元素 使用给定搜索参数的页面。
Result StackTrace:
at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Appium.AppiumDriver`1.Execute(String driverCommandToExecute, Dictionary`2 parameters)
at OpenQA.Selenium.Remote.RemoteWebDriver.FindElement(String mechanism, String value)
at OpenQA.Selenium.Appium.AppiumDriver`1.FindElement(String by, String value)
at OpenQA.Selenium.Appium.AppiumDriver`1.FindElementByAccessibilityId(String selector)
启动服务器WinAppDriver服务器并运行
以下是我的环境详细信息:
WinAppDriver 1.1 version
Window 10 Pro, 32 GB RAM, i7-7500U Processor
NET Core 3.0 SDK
【问题讨论】:
标签: appium-desktop winappdriver