“无法找到Chrome二进制文件”运行codedUI测试时 [英] "Cannot find Chrome binary" when running codedUI tests
问题描述
我希望有人可以帮助我解决运行某些编码检测测试的问题。我正在尝试在Chrome浏览器中进行测试,并下载了"用于Coded UI跨浏览器的Selenium组件"软件包并确保我运行的是谷歌浏览器的V53。
然而,当我现在在visual studio中运行测试我得到以下错误:
结果消息:
测试方法FirstDemo.CodedUITest1.TestIfWeCanFindMyCourseUsingGoogle引发异常:
Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException:未知错误:无法找到Chrome二进制文件
(驱动信息:chromedriver = 2.25.426923(0390b88869384d6eb0d5d09729679f934aab9eed),platform = Windows NT 6.3.9600 x86_64)
非常感谢任何帮助。
很多谢谢
安迪
Andrew Tilston
嗨Andy,
在真正成为问题之前,我现在似乎已经解决了。请安装此修补程序包:
我刚刚使用Chrome版本56进行了测试,Chrome驱动程序版本与您的2.25版本相同,现在运行正常。
请试一试,随时告诉我结果。
祝你好运,
Fletch
Hi,
I am hoping someone can help me with an issue I am having running some codedUI tests. I am trying to test in a chrome browser, and have downloaded the 'Selenium components for Coded UI Cross Browser' package and ensured I am running V53 of Google Chrome.
However, when I now run the test in visual studio I get the below error:
Result Message:Test method FirstDemo.CodedUITest1.TestIfWeCanFindMyCourseUsingGoogle threw exception:
Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: unknown error: cannot find Chrome binary
(Driver info: chromedriver=2.25.426923 (0390b88869384d6eb0d5d09729679f934aab9eed),platform=Windows NT 6.3.9600 x86_64)
Any help with this would be greatly appreciated.
Many thanks
Andy
Andrew Tilston
Hi Andy,
Before it was really an issue, but I seems to be fixed now. Please install this hotfix package:
I just tested it with the chrome version 56, Chrome driver version is same as yours 2.25, and it works fine now.
Please give it a try and feel free to let me know the result.
Best regards,
Fletch
这篇关于“无法找到Chrome二进制文件”运行codedUI测试时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!