- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我使用的是 Selenium 3.4.0、Java 1.8 和 Firefox 54.0.1(64 位)。当我尝试使用 Firefox 打开链接时,出现空指针异常。当我使用 Selenium/Python 时,它工作正常,但我试图运行此 guru 99 页中的代码( https://www.guru99.com/first-webdriver-script.html).I '已经搜索以查看其他人是否遇到此问题,但我找不到任何解决方案。我得到以下输出:
1501246654252 addons.manager DEBUG Application has been upgraded
1501246654291 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1501246654293 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1501246654297 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/GMPProvider.jsm
1501246654299 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/PluginProvider.jsm
1501246654299 addons.manager DEBUG Starting provider: XPIProvider
1501246654300 addons.xpi DEBUG startup
1501246654301 addons.xpi INFO Mapping fxdriver@googlecode.com to C:\Users\CHRISG~1\AppData\Local\Temp\anonymous8191426632770324153webdriver-profile\extensions\fxdriver@googlecode.com
1501246654301 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: C:\Users\CHRISG~1\AppData\Local\Temp\anonymous8191426632770324153webdriver-profile\extensions\webdriver-staging
1501246654301 addons.xpi INFO Removing all system add-on upgrades.
1501246654301 addons.xpi INFO SystemAddonInstallLocation directory is missing
1501246654302 addons.xpi INFO Mapping aushelper@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\aushelper@mozilla.org.xpi
1501246654303 addons.xpi INFO Mapping e10srollout@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\e10srollout@mozilla.org.xpi
1501246654303 addons.xpi INFO Mapping firefox@getpocket.com to C:\Program Files\Mozilla Firefox\browser\features\firefox@getpocket.com.xpi
1501246654303 addons.xpi INFO Mapping screenshots@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\screenshots@mozilla.org.xpi
1501246654304 addons.xpi INFO Mapping webcompat@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\webcompat@mozilla.org.xpi
1501246654305 addons.xpi INFO Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
1501246654305 addons.xpi DEBUG Skipping unavailable install location app-system-share
1501246654305 addons.xpi DEBUG Skipping unavailable install location app-system-local
1501246654306 addons.xpi DEBUG checkForChanges
1501246654306 addons.xpi INFO SystemAddonInstallLocation directory is missing
1501246654307 addons.xpi DEBUG Loaded add-on state from prefs: {}
1501246654308 addons.xpi DEBUG New add-on fxdriver@googlecode.com in app-profile
1501246654308 addons.xpi DEBUG getModTime: Recursive scan of fxdriver@googlecode.com
1501246654313 addons.xpi DEBUG New add-on aushelper@mozilla.org in app-system-defaults
1501246654313 addons.xpi DEBUG getModTime: Recursive scan of aushelper@mozilla.org
1501246654314 addons.xpi DEBUG New add-on e10srollout@mozilla.org in app-system-defaults
1501246654315 addons.xpi DEBUG getModTime: Recursive scan of e10srollout@mozilla.org
1501246654315 addons.xpi DEBUG New add-on firefox@getpocket.com in app-system-defaults
1501246654315 addons.xpi DEBUG getModTime: Recursive scan of firefox@getpocket.com
1501246654315 addons.xpi DEBUG New add-on screenshots@mozilla.org in app-system-defaults
1501246654316 addons.xpi DEBUG getModTime: Recursive scan of screenshots@mozilla.org
1501246654316 addons.xpi DEBUG New add-on webcompat@mozilla.org in app-system-defaults
1501246654316 addons.xpi DEBUG getModTime: Recursive scan of webcompat@mozilla.org
1501246654317 addons.xpi DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1501246654317 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1501246654317 addons.xpi DEBUG getInstallState changed: true, state: {"app-profile":{"fxdriver@googlecode.com":{"d":"C:\\Users\\CHRISG~1\\AppData\\Local\\Temp\\anonymous8191426632770324153webdriver-profile\\extensions\\fxdriver@googlecode.com","st":1501246654037,"mt":1501246653985}},"app-system-defaults":{"aushelper@mozilla.org":{"d":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\aushelper@mozilla.org.xpi","st":1498667065000},"e10srollout@mozilla.org":{"d":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\e10srollout@mozilla.org.xpi","st":1498667065000},"firefox@getpocket.com":{"d":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\firefox@getpocket.com.xpi","st":1498667066000},"screenshots@mozilla.org":{"d":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\screenshots@mozilla.org.xpi","st":1498667067000},"webcompat@mozilla.org":{"d":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\webcompat@mozilla.org.xpi","st":1498667066000}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","st":1498667065000}}}
1501246654324 addons.xpi-utils DEBUG Opening XPI database C:\Users\CHRISG~1\AppData\Local\Temp\anonymous8191426632770324153webdriver-profile\extensions.json
1501246654326 addons.xpi-utils DEBUG New add-on fxdriver@googlecode.com installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1501246654340 addons.xpi WARN Add-on fxdriver@googlecode.com is not correctly signed.
1501246654340 addons.xpi WARN Add-on fxdriver@googlecode.com is not correctly signed.
1501246654343 DeferredSave.extensions.json DEBUG Save changes
1501246654343 addons.xpi-utils DEBUG New add-on aushelper@mozilla.org installed in app-system-defaults
1501246654346 DeferredSave.extensions.json DEBUG Starting timer
1501246654349 DeferredSave.extensions.json DEBUG Save changes
1501246654349 addons.xpi-utils DEBUG New add-on e10srollout@mozilla.org installed in app-system-defaults
1501246654354 DeferredSave.extensions.json DEBUG Save changes
1501246654355 addons.xpi-utils DEBUG New add-on firefox@getpocket.com installed in app-system-defaults
1501246654359 DeferredSave.extensions.json DEBUG Save changes
1501246654359 addons.xpi-utils DEBUG New add-on screenshots@mozilla.org installed in app-system-defaults
1501246654365 DeferredSave.extensions.json DEBUG Save changes
1501246654365 addons.xpi-utils DEBUG New add-on webcompat@mozilla.org installed in app-system-defaults
1501246654369 DeferredSave.extensions.json DEBUG Save changes
1501246654370 addons.xpi-utils DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
1501246654373 DeferredSave.extensions.json DEBUG Starting write
1501246654379 DeferredSave.extensions.json DEBUG Save changes
1501246654380 DeferredSave.extensions.json DEBUG Data changed while write in progress
1501246654380 addons.manager DEBUG Registering startup change 'installed' for fxdriver@googlecode.com
1501246654380 addons.xpi-utils DEBUG Make addon app-profile:fxdriver@googlecode.com visible
1501246654381 DeferredSave.extensions.json DEBUG Save changes
1501246654381 addons.manager DEBUG Registering startup change 'installed' for aushelper@mozilla.org
1501246654390 addons.xpi DEBUG Loading bootstrap scope from C:\Program Files\Mozilla Firefox\browser\features\aushelper@mozilla.org.xpi
1501246654394 addons.xpi DEBUG Calling bootstrap method install on aushelper@mozilla.org version 2.0
1501246654395 addons.xpi-utils DEBUG Make addon app-system-defaults:aushelper@mozilla.org visible
1501246654395 DeferredSave.extensions.json DEBUG Save changes
1501246654395 addons.manager DEBUG Registering startup change 'installed' for e10srollout@mozilla.org
1501246654396 addons.xpi DEBUG Loading bootstrap scope from C:\Program Files\Mozilla Firefox\browser\features\e10srollout@mozilla.org.xpi
1501246654399 addons.xpi DEBUG Calling bootstrap method install on e10srollout@mozilla.org version 1.50
1501246654400 addons.xpi-utils DEBUG Make addon app-system-defaults:e10srollout@mozilla.org visible
1501246654400 DeferredSave.extensions.json DEBUG Save changes
1501246654400 addons.manager DEBUG Registering startup change 'installed' for firefox@getpocket.com
1501246654401 addons.xpi DEBUG Loading bootstrap scope from C:\Program Files\Mozilla Firefox\browser\features\firefox@getpocket.com.xpi
1501246654405 addons.xpi DEBUG Calling bootstrap method install on firefox@getpocket.com version 1.0.5
1501246654405 addons.xpi-utils DEBUG Make addon app-system-defaults:firefox@getpocket.com visible
1501246654406 DeferredSave.extensions.json DEBUG Save changes
1501246654406 addons.manager DEBUG Registering startup change 'installed' for screenshots@mozilla.org
1501246654407 addons.xpi DEBUG Loading bootstrap scope from C:\Program Files\Mozilla Firefox\browser\features\screenshots@mozilla.org.xpi
1501246654410 addons.xpi DEBUG Calling bootstrap method install on screenshots@mozilla.org version 6.6.0
1501246654410 addons.xpi-utils DEBUG Make addon app-system-defaults:screenshots@mozilla.org visible
1501246654410 DeferredSave.extensions.json DEBUG Save changes
1501246654410 addons.manager DEBUG Registering startup change 'installed' for webcompat@mozilla.org
1501246654411 addons.xpi DEBUG Loading bootstrap scope from C:\Program Files\Mozilla Firefox\browser\features\webcompat@mozilla.org.xpi
1501246654413 addons.xpi DEBUG Calling bootstrap method install on webcompat@mozilla.org version 1.1
1501246654413 addons.xpi-utils DEBUG Make addon app-system-defaults:webcompat@mozilla.org visible
1501246654413 DeferredSave.extensions.json DEBUG Save changes
1501246654414 addons.xpi-utils DEBUG Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1501246654414 DeferredSave.extensions.json DEBUG Save changes
1501246654414 addons.xpi DEBUG Updating XPIState for {"id":"fxdriver@googlecode.com","syncGUID":"{284a66e3-05a6-4d03-b43d-a92a5f93e2f7}","location":"app-profile","version":"3.4.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Firefox WebDriver","description":"WebDriver implementation for Firefox","creator":"Simon Stewart","homepageURL":null},"visible":true,"active":false,"userDisabled":false,"appDisabled":true,"descriptor":"C:\\Users\\CHRISG~1\\AppData\\Local\\Temp\\anonymous8191426632770324153webdriver-profile\\extensions\\fxdriver@googlecode.com","installDate":1501246654037,"updateDate":1501246654037,"applyBackgroundUpdates":1,"bootstrap":false,"skinnable":false,"size":3303362,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":true,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"3.0","maxVersion":"48.0"}],"targetPlatforms":[{"os":"Darwin","abi":null},{"os":"SunOS","abi":null},{"os":"FreeBSD","abi":null},{"os":"OpenBSD","abi":null},{"os":"WINNT","abi":null},{"os":"Linux","abi":null}],"multiprocessCompatible":false,"signedState":0,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1501246654415 addons.xpi DEBUG Updating XPIState for {"id":"aushelper@mozilla.org","syncGUID":"{a337c938-f101-467f-8334-642c2957ef77}","location":"app-system-defaults","version":"2.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Application Update Service Helper","description":"Sets value(s) in the update url based on custom checks.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\aushelper@mozilla.org.xpi","installDate":1498667065000,"updateDate":1498667065000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":8488,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0.1","maxVersion":"54.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1501246654415 addons.xpi DEBUG getModTime: Recursive scan of aushelper@mozilla.org
1501246654415 addons.xpi DEBUG Updating XPIState for {"id":"e10srollout@mozilla.org","syncGUID":"{253d1e2b-244f-48a3-8215-48fd1ea043b0}","location":"app-system-defaults","version":"1.50","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Multi-process staged rollout","description":"Staged rollout of Firefox multi-process feature.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\e10srollout@mozilla.org.xpi","installDate":1498667065000,"updateDate":1498667065000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":12519,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0.1","maxVersion":"54.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1501246654415 addons.xpi DEBUG getModTime: Recursive scan of e10srollout@mozilla.org
1501246654416 addons.xpi DEBUG Updating XPIState for {"id":"firefox@getpocket.com","syncGUID":"{82e97246-464d-494a-92d5-df6243a967d5}","location":"app-system-defaults","version":"1.0.5","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Pocket","description":"When you find something you want to view later, put it in Pocket.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\firefox@getpocket.com.xpi","installDate":1498667066000,"updateDate":1498667066000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":913906,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0.1","maxVersion":"54.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1501246654416 addons.xpi DEBUG getModTime: Recursive scan of firefox@getpocket.com
1501246654417 addons.xpi DEBUG Updating XPIState for {"id":"screenshots@mozilla.org","syncGUID":"{88407b9c-4ff8-4d68-9615-aa613dbe559f}","location":"app-system-defaults","version":"6.6.0","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Firefox Screenshots","description":null,"creator":null,"homepageURL":"https://pageshot.net/"},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\screenshots@mozilla.org.xpi","installDate":1498667067000,"updateDate":1498667067000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":716271,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"51.0a1","maxVersion":"*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1501246654417 addons.xpi DEBUG getModTime: Recursive scan of screenshots@mozilla.org
1501246654418 addons.xpi DEBUG Updating XPIState for {"id":"webcompat@mozilla.org","syncGUID":"{21466d10-4f5e-4882-9e6b-1d1c096fc15b}","location":"app-system-defaults","version":"1.1","type":"extension","internalName":null,"updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":null,"icon64URL":null,"defaultLocale":{"name":"Web Compat","description":"Urgent post-release fixes for web compatibility.","creator":null,"homepageURL":null},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"C:\\Program Files\\Mozilla Firefox\\browser\\features\\webcompat@mozilla.org.xpi","installDate":1498667066000,"updateDate":1498667066000,"applyBackgroundUpdates":1,"bootstrap":true,"skinnable":false,"size":9006,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":false,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0.1","maxVersion":"54.*"}],"targetPlatforms":[],"multiprocessCompatible":true,"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"mpcOptedOut":false,"userPermissions":null}
1501246654418 addons.xpi DEBUG getModTime: Recursive scan of webcompat@mozilla.org
1501246654419 addons.xpi DEBUG Updating XPIState for {"id":"{972ce4c6-7e08-4474-a285-3208198ce6fd}","syncGUID":"{374c68bf-b5ce-4e4f-a6c4-f1532a743336}","location":"app-global","version":"54.0.1","type":"theme","internalName":"classic/1.0","updateURL":null,"updateKey":null,"optionsURL":null,"optionsType":null,"aboutURL":null,"icons":{},"iconURL":"chrome://browser/content/default-theme-icon.svg","icon64URL":null,"defaultLocale":{"name":"Default","description":"The default theme.","creator":"Mozilla","homepageURL":null,"contributors":["Mozilla Contributors"]},"visible":true,"active":true,"userDisabled":false,"appDisabled":false,"descriptor":"C:\\Program Files\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi","installDate":1498667065000,"updateDate":1498667065000,"applyBackgroundUpdates":1,"skinnable":true,"size":8207,"sourceURI":null,"releaseNotesURI":null,"softDisabled":false,"foreignInstall":false,"hasBinaryComponents":false,"strictCompatibility":true,"locales":[],"targetApplications":[{"id":"{ec8030f7-c20a-464f-9b0e-13a3a9e97384}","minVersion":"54.0.1","maxVersion":"54.0.1"}],"targetPlatforms":[],"seen":true,"dependencies":[],"hasEmbeddedWebExtension":false,"userPermissions":null}
1501246654420 addons.xpi DEBUG getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1501246654444 DeferredSave.extensions.json DEBUG Save changes
1501246654444 addons.xpi DEBUG Updating database with changes to installed add-ons
1501246654444 addons.xpi-utils DEBUG Updating add-on states
1501246654445 addons.xpi-utils DEBUG Writing add-ons list
1501246654452 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\aushelper@mozilla.org.xpi
1501246654452 addons.xpi DEBUG Calling bootstrap method startup on aushelper@mozilla.org version 2.0
1501246654453 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\e10srollout@mozilla.org.xpi
1501246654454 addons.xpi DEBUG Calling bootstrap method startup on e10srollout@mozilla.org version 1.50
1501246654455 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\firefox@getpocket.com.xpi
1501246654456 addons.xpi DEBUG Calling bootstrap method startup on firefox@getpocket.com version 1.0.5
1501246654456 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\screenshots@mozilla.org.xpi
1501246654457 addons.xpi DEBUG Calling bootstrap method startup on screenshots@mozilla.org version 6.6.0
1501246654457 addons.xpi DEBUG Registering manifest for C:\Program Files\Mozilla Firefox\browser\features\webcompat@mozilla.org.xpi
1501246654458 addons.xpi DEBUG Calling bootstrap method startup on webcompat@mozilla.org version 1.1
1501246654461 addons.manager DEBUG Registering shutdown blocker for XPIProvider
1501246654462 addons.manager DEBUG Provider finished startup: XPIProvider
1501246654462 addons.manager DEBUG Starting provider: LightweightThemeManager
1501246654462 addons.manager DEBUG Registering shutdown blocker for LightweightThemeManager
1501246654462 addons.manager DEBUG Provider finished startup: LightweightThemeManager
1501246654462 addons.manager DEBUG Starting provider: GMPProvider
1501246654467 addons.manager DEBUG Registering shutdown blocker for GMPProvider
1501246654467 addons.manager DEBUG Provider finished startup: GMPProvider
1501246654467 addons.manager DEBUG Starting provider: PluginProvider
1501246654467 addons.manager DEBUG Registering shutdown blocker for PluginProvider
1501246654467 addons.manager DEBUG Provider finished startup: PluginProvider
1501246654468 addons.manager DEBUG Completed startup sequence
1501246654778 addons.manager DEBUG Starting provider: <unnamed-provider>
1501246654778 addons.manager DEBUG Registering shutdown blocker for <unnamed-provider>
1501246654779 addons.manager DEBUG Provider finished startup: <unnamed-provider>
1501246654937 DeferredSave.extensions.json DEBUG Write succeeded
1501246654937 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 19
1501246654937 DeferredSave.extensions.json DEBUG Starting timer
1501246654951 addons.repository DEBUG No addons.json found.
1501246654951 DeferredSave.addons.json DEBUG Save changes
1501246654954 DeferredSave.addons.json DEBUG Starting timer
1501246654976 addons.manager DEBUG Starting provider: PreviousExperimentProvider
1501246654976 addons.manager DEBUG Registering shutdown blocker for PreviousExperimentProvider
1501246654976 addons.manager DEBUG Provider finished startup: PreviousExperimentProvider
1501246654979 DeferredSave.extensions.json DEBUG Starting write
1501246655004 DeferredSave.addons.json DEBUG Starting write
1501246655006 DeferredSave.extensions.json DEBUG Write succeeded
1501246655021 DeferredSave.addons.json DEBUG Write succeeded
[GPU 7220] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w64-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'CHRIS-PC', ip: '192.xxx.x.xxx', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_141'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:658)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:250)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:236)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:137)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:191)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:108)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:104)
at newpackage.MyClass.main(MyClass.java:12)
Caused by: java.lang.NullPointerException
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:192)
at org.openqa.selenium.firefox.XpiDriverService.start(XpiDriverService.java:94)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:78)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:637)
... 7 more
最佳答案
这是您问题的答案:
错误UnreachableBrowserException:无法启动新 session 。可能的原因是远程服务器地址无效或浏览器启动失败
说明了一切。
根据 guru99.com提到在System.setProperty
中使用webdriver.firefox.marionette
。在 Selenium 3.x
中,我们将改用 webdriver.gecko.driver
。
因此请考虑更改代码行:
System.setProperty("webdriver.firefox.marionette","C:\\geckodriver.exe");
至:
System.setProperty("webdriver.gecko.driver","C:\\your_directory\\geckodriver.exe");
如果这能回答您的问题,请告诉我。
关于java - 使用 "webdriver.firefox.marionette"时由 : java. lang.NullPointerException 引起的 UnreachableBrowserException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45374301/
我已经为桌面和移动 Firefox 开发了一些 Firefox 插件(扩展),但现在我无法将插件/扩展安装到在 Firefox OS 中运行的浏览器中(我正在使用模拟器插件)。请注意,我不想创建一个传
可以将选项卡/网址从移动 Firefox 发送到桌面 Firefox 浏览器,但是否可以以相反的方式执行此操作?从桌面版 Firefox 到移动版 Firefox,并像其他方向一样自动加载。我找不到除
我想等待 Firefox-Browser-Events (sessionstore-windows-restored, user-interaction-inactive,..) 以清除历史记录。我的
我在公司网络中,想为 Firefox 安装一些开发人员工具。不幸的是,政策禁止 Firefox 直接访问互联网,但还有其他浏览器可以访问互联网。现在:如何在没有 Firefox 的情况下直接下载 xp
是否有用于在 firefox 中执行选择性缓存的插件或方法?我可以disable caching entirely ,但我仍然希望能够缓存一些需要几秒钟才能加载的大型 javascript 库 (ex
我目前正在将 Chrome 扩展程序转换为 Firefox 插件,并希望复制 chrome.storage.sync 功能。 但是,我无法使用 simple-storage 找到是否由 Firefox
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 6年前关闭。 Improve thi
所以,我使用这个代码: var options = { enableHighAccuracy: true, timeout: 2000, maximumAge: 100 }; navi
有没有办法打开 Firefox 并强制它在启动时加载临时加载项(webextension)?通常我必须手动去about:debugging并选择我硬盘上的扩展名。我正在寻找一个可以在加载 Firefo
我正在密切关注教程 here当我尝试创建 Firefox 扩展时。我的扩展有以下树: backtosearch +-chrome +-content backtosearch.
如何从代码中正确地重启 firefox(没有任何“恢复 session ”的东西并且使用与以前相同的窗口)? 我知道 bash 脚本进程中“firefox-bin”的 pid,并且我已将自定义插件加载
自从 Firefox 的最后几次更新以来,我们心爱的 Firebug 已集成到 Firefox 开发人员工具中,并且包括我在内的很多人 don't like what happened到 Firebu
当你在某处上传图片时,在使用chrome时,你可以看到状态栏实际上显示了上传的“状态”,即上传完成的百分比。 Firefox 的状态栏有没有办法显示这个上传状态? 最佳答案 用谷歌搜索这个,发现这个:
例如 Chrome 保存在这里:~Library/Application Support/Google/Chrome/Default/Current Tabs和 Safari 在这里 ~/Librar
当火狐开发者版推出时,我很高兴,我可以使用WebIde、响应式设计工具、滴管等……今天我受够了。 里面有很多bug,我就不一一列举我和我的同事发送和批准了多少bug了…… 我在 google 中搜索过
我在 Ubuntu 上使用 Firefox,版本 39.0。我正在尝试调试一个附加组件,并希望在 chrome 权限下运行一些 JavaScript。根据 this page我应该能够在浏览器控制台中
几天前,我更改了我的网站的图标:打开网站后,它可以很好地工作: 我的网站也在我的书签中,但是显示了旧的收藏夹图标: 我已经看过here,但是答案并没有解决我的问题。 解决方法可能非常简单,但是到目前为
我正在使用web API从Firefox开发一个 native 消息传递应用程序。该扩展应该调用一个解析stdin的应用程序,然后基于它解析的一些数据调用我的另一个rust应用程序,但是出于显而易见的
在 Firefox 中有插件和扩展。你能解释一下为什么这些插件有不同的名称和标签吗?它们是否差异如此之大,以至于需要不同的名称?我认为区分这些东西有点不自然,扩展具有越来越多的功能,与插件相比它们缺少
我正在使用附加构建器和附加 SDK 编写 Firefox 扩展。到目前为止,我已经能够解决任何限制,而无需迁移到 XUL。但是,我遇到了障碍。 我的扩展程序有一个长时间运行的进程,可能会阻塞,因此我需
我是一名优秀的程序员,十分优秀!