编码的用户界面不适用于最新的Chrome浏览器版本54 [英] Coded UI not working for latest Chrome browser version 54

查看:67
本文介绍了编码的用户界面不适用于最新的Chrome浏览器版本54的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Chrome浏览器更新到版本54之后,我所有的编码用户界面测试都返回以下错误.我已经将chromedriver更新为2.25,并将'selenium-dotnet-strongnamed'程序集更新为3.0.0.但是仍然没有用.我发现webdriver类 正常,但是编码的UI脚本不起作用.

After my Chrome browser updated to version 54 all my Coded UI tests are returning the following error. I have updated the chromedriver to 2.25 and 'selenium-dotnet-strongnamed' assemblies to 3.0.0. But still it did not work. I found that the webdriver classes are working fine, but Coded UI scripts are not working.

请提出如何解决此问题的建议.

Please suggest how to fix this issue.

结果消息:
测试方法CodedUIVthSelenium.CodedUITest1.CodedUITestMethod1引发异常:
System.ArgumentNullException:值不能为null.
参数名称:windowHandle
结果StackTrace:
在Microsoft.VisualStudio.TestTools.UITesting.UITestControl..ctor(IntPtr windowHandle)
    at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserService.InitializeTopLevelWindow()
    at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserService.InitializeCrossBrowserService(String [] args)
    at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserService.< .cctor&b; b__0(String [] args)
    at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserService.Launch(String [] args)
    at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserFactory.Launch(String [] arguments)
    at Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.LaunchPrivate(String [] arguments)
   在Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.<> c__DisplayClass18.<启动> b__17()
  Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod [T](Func`1函数,UITestControl控件,布尔型firePlaybackErrorEvent,布尔型logAsAction)
    at Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.Launch(String [] arguments)
 在e:\ Praveen \ CUIT \ SampleProjects \ CodedUIVthSelenium \ CodedUITest1.cs:第31行中的CodedUIVthSelenium.CodedUITest1.CodedUITestMethod1():

Result Message:
Test method CodedUIVthSelenium.CodedUITest1.CodedUITestMethod1 threw exception: 
System.ArgumentNullException: Value cannot be null.
Parameter name: windowHandle
Result StackTrace:
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl..ctor(IntPtr windowHandle)
   at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserService.InitializeTopLevelWindow()
   at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserService.InitializeCrossBrowserService(String[] args)
   at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserService.<.cctor>b__0(String[] args)
   at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserService.Launch(String[] args)
   at Microsoft.VisualStudio.TestTools.UITest.Extension.CrossBrowser.CrossBrowserFactory.Launch(String[] arguments)
   at Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.LaunchPrivate(String[] arguments)
   at Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.<>c__DisplayClass18.<Launch>b__17()
   at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod[T](Func`1 function, UITestControl control, Boolean firePlaybackErrorEvent, Boolean logAsAction)
   at Microsoft.VisualStudio.TestTools.UITesting.BrowserWindow.Launch(String[] arguments)
   at CodedUIVthSelenium.CodedUITest1.CodedUITestMethod1() in e:\Praveen\CUIT\SampleProjects\CodedUIVthSelenium\CodedUITest1.cs:line 31

推荐答案

您好Surya Praveen,

Hi Surya Praveen,

Chrome v54中的编码的UI脚本和硒组件之间存在一些兼容性问题.有许多社区遇到此问题.我已经向以下站点提交了反馈.请点击 以下链接中的 Q AND A 标签.如果要使用chrome v54,请等待工程师耐心更新.

There are some compatibility issues between coded UI scripts and selenium components in Chrome v54. There are many communities encountered this issue. And I have submitted a feedback to the following site. Please click Q AND A tag from the following link. And please wait for engineers to update patiently if you want to use chrome v54.

但是,如果您对测试项目中的浏览器版本没有要求,则为

.我建议您从以下链接中参考Gohar Alam的回复,即我们可以将较旧的chrome版本用于编码的UI测试.

But if you don’t have a requirement for the version of browser in your test project. I suggest you could refer to Gohar Alam’s reply from the following link that we could use the older chrome version for coded UI test.

https://visualstudiogallery.msdn.microsoft.com/11cfc881-f8c9 -4f96-b303-a2780156628d/view/discusions

此致

奥斯卡


这篇关于编码的用户界面不适用于最新的Chrome浏览器版本54的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆