English 中文(简体)
使用 Firefoxdriver 时, 有 IPv6 的 IPv6 问题 。
原标题:Selenium has an IPv6 issue when using firefoxdriver

我试图用驱动一些在 Firefox 的网络测试, 但是当我这样做的时候

FirefoxDriver _driver = new FirefoxDriver();

我得到这个例外,我得到这个例外

An address incompatible with the requested protocol was used [::1]:7055

这似乎是一种 IPv6 相对于 IPv4 的 IPv6 和 IPv4 的 IPv4 问题, 是无法修补的 。 但是, 我需要围绕它工作。 禁用 IPv6 在我的以太网上没有区别 。 我还能尝试什么?

干杯 干杯

问题回答

我在这里做了一些假设,但是这似乎是我连接到本地主机的 URL 时在 Windows 上使用 的问题。 问题可能是本地主机以 *1 而不是 Windows 2008 上的 127.0.0.1 解决了 。

If that is the case add the line 127.0.0.1 localhost into C:WindowsSystem32driversetchosts





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签