我正在尝试在 .NET 中使用 Applitools 超快网格并不断收到此错误。我只是想从他们的网站运行他们的 c# 示例代码: https ://applitools.com/docs/topics/overview/overview-writing-tests-with-vg.html
Result StackTrace:
at Applitools.Selenium.EyesSeleniumUtils.SetViewportSizeAttempt3(Logger logger, IWebDriver driver, Size requiredSize, Size& actualViewportSize)
at Applitools.Selenium.EyesSeleniumUtils.SetViewportSize(Logger logger, IWebDriver driver, RectangleSize size)
at Applitools.Selenium.VisualGrid.VisualGridEyes.EnsureViewportSize_()
at Applitools.Selenium.VisualGrid.VisualGridEyes.Open(IWebDriver webDriver)
at Applitools.Selenium.Eyes.Open(IWebDriver driver)
at ApplitoolsHackathon2020.ModernVisualAITests.ModernVisualAITests.CrossDeviceElementTest() in HelloWord.cs:line 90
Result Message: Applitools.EyesSetViewportSizeException : Could not set required viewport size. Seems like a rounding error. Actual viewport size: {Width=800, Height=599}.
这是我的设置
- Selenium Web 驱动程序 v3.141
- ChromeDriver v81.0.4044.13800
- Eyes.Sdk.Core v2.29.0
- Eyes.Selenium v2.29.0
- NUnit v3.11.0
- NUnit3TestAdaptor v3.15.1
- .NET 4.7.2
有人遇到过这个并解决了吗?