我正在尝试使用以下配置运行自动化脚本。
配置:
Selenium-java 2.53.0
Selenium-server 2.53.0
JRE 7 Firefox 49.0
geckodriver-v0.11.1-Win64的
Firefox已打开,但脚本无法输入网址。
请参阅以下错误跟踪:
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
ey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{"32":"icon.png","48":"icon.png"},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Default","description":"The default
Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1477028214411,"updateDate":1477028214411,"applyBackgroundUpdates":1,"skinnable":true,"size":21905,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"49.0.2","maxVersion":"49.0.2"}],"targetPlatforms":[],"seen":true}
1478243939636 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
如果需要更多信息,请告知我们。
答案 0 :(得分:3)
Selenium 2.53.1及更早版本不适用于FF 4.7及更早版本。 你需要将Selenium更新到3.0.2,下载Firefox 47.1和elder<下载Gecko Driver(在FF 47和老年人中进行测试)并保持冷静。
V3.0.0
重要变更
- Firefox 47.0.1或更早版本仅完全支持Firefox。 geckodriver提供对firefox更高版本的支持, 这是基于不断发展的W3C WebDriver规范,并使用电线 该规范中的协议,如有更改,恕不另行通知。
- 您可能希望选择ESR版本,例如45.4.0esr或更早版本。
- 根本不支持Firefox 47.0.0。