无法在45000毫秒内启动套接字.尝试连接到以下地址 [英] failed to start up socket within 45000 ms. attempted to connect to the following addresses

查看:89
本文介绍了无法在45000毫秒内启动套接字.尝试连接到以下地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在使用Selenium组件使用编码UI进行跨浏览器测试,同时尝试启动Firefox并获得以下提到的错误消息...任何人都可以帮助我解决这个问题...

I Am working on Cross Browser Testing with Coded UI using Selenium Components, while trying to Launch Firefox getting below mentioned Error Message... can any one help me to out here...

错误消息:无法在45000毫秒内启动套接字.尝试连接到以下地址

Error Message : failed to start up socket within 45000 ms. attempted to connect to the following addresses

我的环境:Windows 7

My Environment: Windows 7

Visual Studio 2013 Ultimate,版本12.0.4更新5

Visual Studio 2013 Ultimate,Version 12.0.4 Update 5

Firefox版本:: 49.0.2 

Firefox Version :: 49.0.2 

推荐答案

Kiran Kumar Allagadda,

Hi Kiran Kumar Allagadda,

在我这边,我可以毫无问题地发射含硒的Firefox.我的Firefox版本与您相同.我的硒NuGet软件包版本是3.0.0(如果您的版本不是3.0.0,请更新).请参考以下屏幕截图:

In my side I could launch the firefox with selenium without any problems. My firefox version is the same as you. And my selenium NuGet package version is 3.0.0 (if your version is not 3.0.0, please update). Please refer to the following screenshot:

在debug文件夹中,我有以下文件(确保存在geckodriver.exe):

And in the debug folder I have the following files (make sure geckodriver.exe exists):

FireFox.exe在以下路径下(我的操作系统是Win10 64位):

FireFox.exe is under the following path (my OS is Win10 64bit):

C:\ Program Files(x86)\ Mozilla Firefox

C:\Program Files (x86)\Mozilla Firefox

请以管理员身份运行VS,并使用以下代码进行测试:

Please run VS in administrator and use the following code to test:

static void Main(string[] args)
        {
            FirefoxDriver driver = new FirefoxDriver();
            try
            {
                driver.Navigate().GoToUrl("https://www.bing.com/");
                Thread.Sleep(1000);
            }
            catch (Exception ex)
            {
            }
            finally
            {
                driver.Quit();
            }

        }

此致

奥斯卡


这篇关于无法在45000毫秒内启动套接字.尝试连接到以下地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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