我在启用开发者模式的情况下运行 Win10,并启动了 WinAppDriver。在 VS 2019 中,我运行了计算器示例,但每次测试都失败并出现异常。然后我尝试设置一堆断点,但是当我运行测试时,它永远不会在我的断点处中断。
这是异常的堆栈跟踪:
Test Name: Addition
Test FullName: Test Detail Summary
Test Source: C:\Code\WinAppDriver-1.1.1\Samples\C#\CalculatorTest\ScenarioStandard.cs : line 31
Test Outcome: Failed
Test Duration: 0:00:00
Test Name: Addition
Test Outcome: Failed
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.RemoteWebElement.Click()
at CalculatorTest.ScenarioStandard.Clear() in C:\Code\WinAppDriver-1.1.1\Samples\C#\CalculatorTest\ScenarioStandard.cs:line 131
Result Message: Initialization method CalculatorTest.ScenarioStandard.Clear threw exception. System.InvalidOperationException: An unknown error occurred in the remote end while processing the command..
任何想法为什么测试不起作用,为什么它没有在我的断点处中断?