我在 Windows 机器上运行 Selenium WebDriver 测试,我需要从 Linux Box 调用这些测试。当我从 Windows 机器运行相同的测试时,测试运行良好。我正在使用 SSH 在 Linux 上运行测试。当我尝试这样做时,我遇到了以下错误。
INFO: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.
Firefox console output:
LOG addons.xpi: startup
LOG addons.xpi: Skipping unavailable install location app-system-local
LOG addons.xpi: Skipping unavailable install location app-system-share
LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\ADMINI~1\AppData\Local\Temp\anonymous5065365792772883950webdriver-profile\extensions\webdriver-staging
LOG addons.xpi: checkForChanges
LOG addons.xpi-utils: Opening database
LOG addons.xpi: New add-on fxdriver@googlecode.com installed in app-profile
Blocklist::_loadBlocklistFromFile: blocklist is disabled
LOG addons.xpi: Updating database with changes to installed add-ons
LOG addons.xpi-utils: Updating add-on states
LOG addons.xpi-utils: Writing add-ons list
LOG addons.xpi: shutdown
LOG addons.xpi-utils: shutdown
LOG addons.xpi-utils: Database closed
LOG addons.xpi: startup
LOG addons.xpi: Skipping unavailable install location app-system-local
LOG addons.xpi: Skipping unavailable install location app-system-share