English 中文(简体)
吊挂即时灭火器驱动器
原标题:Selenium hangs instantiating FirefoxDriver

我尝试用开始( 下载了当前版本) 并复制了他们打开浏览器并进行谷歌搜索的示例 。

然而,程序将永远挂在第一行WebDriver驱动程序=新的FirefoxDriver ();

我安装了13号火药

Thread dump:
Thread [main]
  Thread.sleep(long) line: not available [native method] [local variables unavailable]
  FirefoxBinary.sleep(long) line: 218
  FirefoxBinary.clean(FirefoxProfile, File) line: 234
  NewProfileExtensionConnection.start() line: 76
  FirefoxDriver.startClient() line: 200
  FirefoxDriver(RemoteWebDriver).(CommandExecutor, Capabilities) line: 94
  FirefoxDriver.(FirefoxBinary, FirefoxProfile) line: 147
  FirefoxDriver.() line: 85
  Test.main(String[]) line: 24
最佳回答

通常当Firefox & amp; 在兼容性方面有点“ 无法同步 ” 时, 就会出现这种情况 。

您应该尝试两件事 : 将更新到最新版本和/ 降级 Firefox 。 注意 < a href=" https:// stackoverflow. com/ questions/18 609557/ where- to- find- selend- semen- webdriver- release- notes" > semium resent Notes

问题回答

通常新浏览器很热—— 我在别处寻找一个问题 。 Webdriver 或 服务器 。 < a href="http://d.pr/i/Q5Dt" rel=“ nofollow” >http://d.pr/i/ Q5Dt

我和Firefox 18合作过,但我刚刚被自动更新到19, 这似乎打破了网络驱动器。 Mozilla与先前版本的链接并不突出:

https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/18.0b7/mac/en-US/

当试图在无头的CentOS服务器上“坚固”而不设置 显示时, 即刻将 Webdriver 同步到一个无头的 CentOS 服务器上时看到此行为 。

perhttps://serverfault.com/ questions/363827/how-can-i-run-firefox-on-centos-with-no-display -- 您可以使用 Xvfb , 它为您提供了一个不需要与物理显示连接的 X 服务器 。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签