at org.openqa.selenium.firefox.internal. NewProfileExtensionConnection.start

There are several phases in a tester’s life starting from working in a team to making automation framework. Along with this he/she has to make sure the integrity of the work-test life-cycle.

Today in this blog post I will share a problem which will come when people who has to work on a framework who was made by someone else and he/she has to maintain and extend it.

Error log


org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
C:\\Program Files (x86)\\Hewlett-Packard\\HP ProtectTools Security Manager\\Bin\\FirefoxExt","mtime":1362391227357,"rdfTime":1335416480000},"{55A8EC97-6AF6-442c-877F-11C51DBD162D}":{"descriptor":"C:\\Program Files (x86)\\Tomabo\\YouTube Video Downloader\\YTVD_FF.xpi","mtime":1368427158000}}},{"name":"app-global","addons":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"descriptor":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","mtime":1408910281110,"rdfTime":1408910281092}}},{"name":"app-profile","addons":{"fxdriver@googlecode.com":{"descriptor":"C:\\Users\\user\\AppData\\Local\\Temp\\anonymous1607041021764567204webdriver-profile\\extensions\\fxdriver@googlecode.com","mtime":1410242998324,"rdfTime":1410242998044}}}]
1410243001091 addons.xpi-utils DEBUG Opening XPI database C:\Users\user\AppData\Local\Temp\anonymous1607041021764567204webdriver-profile\extensions.json
1410243001093 addons.xpi DEBUG New add-on fxdriver@googlecode.com installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
1410243001498 addons.xpi-utils DEBUG Make addon app-profile:fxdriver@googlecode.com visible
1410243001500 DeferredSave.extensions.json DEBUG Save changes
1410243001501 DeferredSave.extensions.json DEBUG Save changes
1410243001501 addons.xpi DEBUG New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
1410243001521 addons.xpi-utils DEBUG Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible
1410243001521 DeferredSave.extensions.json DEBUG Save changes
1410243001521 DeferredSave.extensions.json DEBUG Save changes
1410243001521 addons.xpi DEBUG New add-on otis@digitalpersona.com installed in winreg-app-global
1410243001559 addons.xpi-utils DEBUG Make addon winreg-app-global:otis@digitalpersona.com visible
1410243001559 DeferredSave.extensions.json DEBUG Save changes
1410243001560 DeferredSave.extensions.json DEBUG Save changes
1410243001560 addons.xpi DEBUG New add-on {55A8EC97-6AF6-442c-877F-11C51DBD162D} installed in winreg-app-global
1410243001610 addons.xpi-utils DEBUG Make addon winreg-app-global:{55A8EC97-6AF6-442c-877F-11C51DBD162D} visible
1410243001610 DeferredSave.extensions.json DEBUG Save changes
1410243001610 DeferredSave.extensions.json DEBUG Save changes
1410243001640 addons.xpi DEBUG Updating database with changes to installed add-ons
1410243001641 addons.xpi-utils DEBUG Updating add-on states
1410243001642 addons.xpi-utils DEBUG Writing add-ons list
1410243002645 DeferredSave.extensions.json DEBUG Starting timer
1410243002765 addons.manager DEBUG shutdown
1410243002765 addons.xpi DEBUG shutdown
1410243002766 addons.xpi-utils DEBUG shutdown
1410243002769 DeferredSave.extensions.json DEBUG Starting write
1410243002976 DeferredSave.extensions.json DEBUG Write succeeded
1410243002976 addons.xpi-utils DEBUG XPI Database saved, setting schema version preference to 16
1410243002976 addons.xpi DEBUG Notifying XPI shutdown observers
1410243002980 addons.manager DEBUG Async provider shutdown done
1410243005200 addons.manager DEBUG Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1410243005201 addons.manager DEBUG Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1410243005202 addons.xpi DEBUG startup
1410243005203 addons.xpi WARN Ignoring missing add-on in C:\Program Files (x86)\VideoPlayerV3\VideoPlayerV3beta652\ff
1410243005203 addons.xpi WARN Ignoring missing add-on in C:\Program Files (x86)\MediaPlayerV1\MediaPlayerV1alpha512\ff
1410243005203 addons.xpi DEBUG Skipping unavailable install location app-system-local
1410243005203 addons.xpi DEBUG Skipping unavailable install location app-system-share
1410243005204 addons.xpi DEBUG Ignoring file entry whose name is not a valid add-on ID: C:\Users\user\AppData\Local\Temp\anonymous1607041021764567204webdriver-profile\extensions\webdriver-staging
1410243005216 addons.xpi DEBUG checkForChanges
1410243005230 addons.xpi DEBUG No changes found

at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:106)
at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:244)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:110)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:190)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:183)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:179)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:92)
at manage.ManageWindowExerciseTest.startFF(ManageWindowExerciseTest.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

Problem statement

I have a project which one of my colleague made and I have to extend this framework. My role is to add new test cases and new features in the project which I have made. So when I tried running that project then I got the above error.

Project specifications:

1. Selenium project.

2. JUnit as testing unit.

3. Keyword driven framework.

Let see what was the issue. Actually I have taken the project , imported it in my eclipse IDE.

Now next what I did was I tried running the test cases which was written by my co-mate, via JUnit. There I got this issue.

Solution

I debugged the issue and there were some issues with initializing FireFox driver/browser. So I debugged there and found that DB initialization was the issue.

I checked the selenium jar in Java Build Path. And there it was pointing to the Selenium-server-2.28.jar which is the old version of jar, and the FF version was old.

Due to this in-compatibility issues this error was coming. I tried changing the path from old to latest selenium-server-jar.

And guess what it started working for me. Hope this will help you also as this solution makes me to proceed my work.

Advertisements

One thought on “at org.openqa.selenium.firefox.internal. NewProfileExtensionConnection.start

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s