Google chrome 无法使用codedui测试在chrome浏览器中点击URL
我有一个编码的UI测试,它在IE中运行良好,但在Chrome中不起作用。 我已经安装了Selenium组件和Chrome驱动程序 使用: Visual Studio 2013版更新5; Chrome浏览器版本66;以及, Chrome驱动程序2.38 以下是我正在使用的代码:Google chrome 无法使用codedui测试在chrome浏览器中点击URL,google-chrome,coded-ui-tests,Google Chrome,Coded Ui Tests,我有一个编码的UI测试,它在IE中运行良好,但在Chrome中不起作用。 我已经安装了Selenium组件和Chrome驱动程序 使用: Visual Studio 2013版更新5; Chrome浏览器版本66;以及, Chrome驱动程序2.38 以下是我正在使用的代码: [TestInitialize()] public void MyTestInitialize() { BrowserWindow.CurrentBrowser = "Chr
[TestInitialize()]
public void MyTestInitialize()
{
BrowserWindow.CurrentBrowser = "Chrome";
BrowserWindow browser = new BrowserWindow();
browser = BrowserWindow.Launch(new System.Uri("Xyz.com"));
}
执行上述行时,会出现以下错误:
An exception of type 'System.ArgumentNullException' occurred in Microsoft.VisualStudio.TestTools.UITesting.dll but was not handled in user code
Additional information: Value cannot be null.
有人能帮我一下吗,我还需要做些什么。我只能说CodedUI在支持Chrome和Firefox方面做得很差。然而,VisualStudio2015在chrome和firefox上运行良好 Firefox:使用旧版本的Firefox并停止进一步升级。我使用45.0,并与Visual Studio 2012和2015配合良好 Chrome:2012年不支持。在以下位置应用修补程序后于2015年生效:
我在Visual Studio 2017 15.8.8版中遇到了完全不同的问题,稍后将详细介绍。它是否启动浏览器?