Selenium WebDriver - FirefoxDriver 错误:无法在 45000 内启动套接字 [英] Selenium WebDriver - FirefoxDriver error: Failed to start up socket within 45000

查看:34
本文介绍了Selenium WebDriver - FirefoxDriver 错误:无法在 45000 内启动套接字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误:

tests.IntegrationTests.Selenium.RegisterAndLogin (TestFixtureSetUp):
SetUp : OpenQA.Selenium.WebDriverException : Failed to start up socket within 45000

当我在代码中执行以下操作时:

when I carry out the following in my code:

using System;
using System.Text;
using NUnit.Framework;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium;

namespace ekmProspector.tests.IntegrationTests.Selenium
{
    [TestFixture]
    public class RegisterAndLogin
    {
        private IWebDriver driver;   

        [TestFixtureSetUp]
        public void Init()
        {            

            driver = new FirefoxDriver();
        }
}

真的不能变得更简单,但错误是致命的.有什么想法吗?

Can't get much simpler really, but the error is fatal. Any ideas?

推荐答案

我最终得到了这个,我删除了安装 WebDriver 时 NuGet 添加的所有包子文件夹,并决定手动添加这些子文件夹.创建了一个lib"文件夹,然后将 selenium 二进制文件解压缩到该文件夹​​中.然后添加对所有二进制文件的引用.现在好像没事了.

I got this working in the end, I removed all the package sub-folders which were added by NuGet when installing WebDriver and decided to added these manually. Created a 'lib' folder, then unzipped the selenium binaries into that folder. Then added references to all the binaries. Seems to be fine now.

这篇关于Selenium WebDriver - FirefoxDriver 错误:无法在 45000 内启动套接字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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