Firefox opens up but the url doesn't opnes

2,251 views
Skip to first unread message

Raju Krishnan

unread,
Dec 11, 2013, 6:12:23 AM12/11/13
to seleniu...@googlegroups.com
Hi ,

I am new to Selenium and webdriver.

I have created the following code and executed it 

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class google {


public static void main(String[] args) {
WebDriver driver = new FirefoxDriver();
driver.get("http://google.com");



Now when i run it , the firefox browser opens up but the page google.com doesn't open up.

i get the following errors on the console. please help in resolving this issue


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.manager: Application has been upgraded
*** 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\urakri\AppData\Local\Temp\anonymous4694651256910015130webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi-utils: Opening database
*** LOG addons.xpi-utils: Creating database schema
*** LOG addons.xpi: New add-on fxdr...@googlecode.com installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
*** LOG addons.xpi: New add-on {0153E448-190B-4987-BDE1-F256CADA672F} installed in winreg-app-global
*** LOG addons.xpi: New add-on {BBDA0591-3099-440a-AA10-41764D9DB4DB} installed in winreg-app-global
*** 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.manager: shutdown
*** 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
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\urakri\AppData\Local\Temp\anonymous4694651256910015130webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl is undefined

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 google.main(google.java:8)
Exception in thread "main" org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files\Mozilla Firefox\firefox.exe) on port 7055; process output follows: 
*** LOG addons.manager: Application has been upgraded
*** 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\urakri\AppData\Local\Temp\anonymous4694651256910015130webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi-utils: Opening database
*** LOG addons.xpi-utils: Creating database schema
*** LOG addons.xpi: New add-on fxdr...@googlecode.com installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
*** LOG addons.xpi: New add-on {0153E448-190B-4987-BDE1-F256CADA672F} installed in winreg-app-global
*** LOG addons.xpi: New add-on {BBDA0591-3099-440a-AA10-41764D9DB4DB} installed in winreg-app-global
*** 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.manager: shutdown
*** 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
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\urakri\AppData\Local\Temp\anonymous4694651256910015130webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl is undefined

Build info: version: '2.28.0', revision: '18309', time: '2012-12-11 20:21:45'
System info: os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.6.0_25'
Driver info: driver.version: FirefoxDriver
at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
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 google.main(google.java:8)
Caused by: 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.manager: Application has been upgraded
*** 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\urakri\AppData\Local\Temp\anonymous4694651256910015130webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi-utils: Opening database
*** LOG addons.xpi-utils: Creating database schema
*** LOG addons.xpi: New add-on fxdr...@googlecode.com installed in app-profile
*** Blocklist::_loadBlocklistFromFile: blocklist is disabled
*** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global
*** LOG addons.xpi: New add-on {0153E448-190B-4987-BDE1-F256CADA672F} installed in winreg-app-global
*** LOG addons.xpi: New add-on {BBDA0591-3099-440a-AA10-41764D9DB4DB} installed in winreg-app-global
*** 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.manager: shutdown
*** 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
*** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\urakri\AppData\Local\Temp\anonymous4694651256910015130webdriver-profile\extensions\webdriver-staging
*** LOG addons.xpi: checkForChanges
*** LOG addons.xpi: No changes found
JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl is undefined

at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:106)
... 7 more

NAMPALLY MAHENDRANATH

unread,
Dec 11, 2013, 6:26:07 AM12/11/13
to seleniu...@googlegroups.com
Hi,

Check your hosts file. Whether localhost point to 127.0.0.1 only or not.

Panikera Raj

unread,
Dec 11, 2013, 10:49:28 AM12/11/13
to selenium-users
Hi Raju,

     you have not mentioned what is version of your firefox, webdriver , os etc..

you can try with below code once you set things proper:


WebDriver driver = new FirefoxDriver();
driver.get("http://www.google.com");


Regards,
Panikera



--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/5e8f6003-e5b4-4811-bb93-6941cb1cf5a2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

balaji dn

unread,
Dec 11, 2013, 10:53:52 AM12/11/13
to seleniu...@googlegroups.com
I suppose this happens when your FF browser version is not compatible with the selenium webdriver , since firefox driver is part of webdriver it might have compatible issues talking to the browser. I suggest to use the latest webdriver version and try once. But not sure whether this would solve the issue, but i feel its a compatiblity issue with the browser and the driver being used.

On Wednesday, 11 December 2013 16:42:23 UTC+5:30, Raju Krishnan wrote:

Karthik Kulkarni

unread,
Dec 11, 2013, 12:23:46 PM12/11/13
to Balaji Nagaraju, seleniu...@googlegroups.com

The log says that there Is something running on the port , kill it and run your script it will run correctly

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.

Akhilesh Rangade

unread,
Dec 13, 2013, 1:30:15 AM12/13/13
to seleniu...@googlegroups.com
Hi,

Even I had faced the similar issue. This issue comes when the selenium driver is not compatible with firefox version. You should download the latest version of selenium driver, remove old selenium driver from library path of your test and add this new selenium driver. Run the test. I will run without any error. :-)

Sandeep Chauhan

unread,
Mar 6, 2014, 11:41:15 AM3/6/14
to seleniu...@googlegroups.com
I am facing the same problem, I have tried all the above suggestions but could not resolve the problem.

Vikas Gahlaut

unread,
Mar 10, 2014, 4:53:58 AM3/10/14
to seleniu...@googlegroups.com
Try uninstall and install ff and update selenium jars..That will work 

MANISH TRIVEDI

unread,
May 9, 2014, 4:28:08 AM5/9/14
to seleniu...@googlegroups.com

I have faced same issue Just upgrade selenium server 2.41 and now its working fine. :)

Fire-fox version : 28

Debashis Das

unread,
May 26, 2014, 8:52:49 AM5/26/14
to seleniu...@googlegroups.com


On Wednesday, December 11, 2013 4:42:23 PM UTC+5:30, Raju Krishnan wrote:

Vikas Gahlaut

unread,
May 27, 2014, 12:41:00 AM5/27/14
to seleniu...@googlegroups.com
Which version of selenium jars and ff are you using??

I guess updating them to latest version will solve ur issue.


--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/yX5i1A1fRd0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.

To post to this group, send email to seleniu...@googlegroups.com.



--
Thanks,

Regards-
Vikas

Haritha P

unread,
May 27, 2014, 12:56:03 PM5/27/14
to seleniu...@googlegroups.com
Hi , 

   I am using  FF 29 and selenium-java-2.41.0.jar  in machine which is with OS( solaris 10). I observed FF hang very frequently in between scripts execution. Attached screenshot for reference. Could any one help me in resolving this issue.

  Thanks in advance

  Regards, 
  Haritha.P
ff_hang.png

hu alter

unread,
May 27, 2014, 11:08:00 PM5/27/14
to seleniu...@googlegroups.com
Yes, from the log seems that these should be caused the errors:
1)the selenium proxy server use the port:7055 ,and make use this port is not binding .just kill this port .
  1. Type netstat -a -o -n and it will bring up a network list, look at the PID (e.g. 7055).
  2. To find out what PID 7055 was (hopefully not a trojan) I typed tasklist /FI "PID eq 8080″
  3. To kill it type taskkill /F /PID 2600
  4. after killing the port ,try re-run the script again .it should solve ur issue maybe
2) if the first step not worked ,try this step,the selenium version here used is Build info: version: '2.28.0', revision: '18309' and the os version is windows 7,so please firstly upgrade to 
selenium 2.42.0 ,the selenium 2.42.0 can support firefox version is: Firefox 28
see the notes:

v2.42.0
=======
WebDriver:

* updating firefox prebuilts, thanks jleyba for fixing the build!
* Use PRUnichar for Gecko < 29, char16_t otherwise.
* Updating third_party/py/jython.jar to Jython 2.5.3
* Removing unused functions
* Implementing more straightforward way to send keyboard events in synthesized mode. Fixes typing into number inputs and rich text editors (like tinymce)
* Fixing interactions API in Firefox to be able to move mouse to elements in frames using native events. Fixes issue 7253
* Removing unused import
* Refactoring: moving an auxiliary class from the top level to inner class
* Removing outdated getValue command handler
* Change ClearElement to be a subclass of WebElementHandler instead of WebDriverHandler
* Removing outdated (unused) command constants
* Fixing clicks on invisible elements in HtmlUnitDriver broken by ElementNotVisibleException being a subclass of InvalidElementStateException
* Click after move with offset should use last mouse position
* Adding new interface methods to the stubs
* Preserve wrapped test function's string representation for Mocah's BDD interface.
* Fixing IE driver to allow JavaScript objects with property names with spaces
* Ignoring IE6-only test failure for CSS
* Bump the hmltunit version to 2.14
* Remove a class of our which replicates HTTP status codes already given meaningful names in the standard JRE.
* Updating version match for native libs in firefox plugin manifest file
* Updating native events dll for FF28
* Implement ability to load driver providers using ServiceLoader. A user can add new providers or override existing ones. To use this ability a user should:
* Refactoring the process of driver instances creation to use a new DriverProvider interface. DefaultDriverProvider wraps the current logic -- creating instances using reflection. This is a step to implement ability to load additional providers using ServiceLoader that can add new providers or override existing ones.
* Ruby: Fix for extensions whose install.rdf uses an attribute for em:id (issue 5978)
* fixes issue for locating newly installed chrome versions
* Fixing IE driver crash when clicking on link that opens a new window.
* Properly configure the http client in the presence of user credentials.
* java json converter chooses Long (Number base class). Fixing RemoteNetworkConnection
* SUPPORTS_BROWSER_CONNECTION was removed, missed a reference
* Clean up use deprecated methods & classes.
* ElementNotVisibleException is a type of InvalidElementStateException.
* Tweak messaging on SafariDriver client page to better reflect what is happening. Also added a log message pointing users to the toolbar button that opens the driver log page.
* Remove some no-op calls to deprecated functions.
* Pull the logic for converting Command/Response pairs to and frame HTTP request/response pairs into a common codec instead of duplicating the logic on the client and server.
* Change some tests to use Alert#accept() instead of Alert#dismiss() to get rid of alert dialogs. This is a workaround to ChromeDriver issue 764:
* When running tests against the remote server, ignore two tests that use required capabilities. The remote server only supports desired capabilities on new session requests.
* Update two tests to work when running with a remote server, where the original js error will be the root exception, but not necessarily the second error in the cause chain.
* Test if we need to skip cookie tests for lack of a valid domain name before calling a method that asserts we have a valid domain name.
* Convert HttpRequest/Response to POJOs; handle all conversion to and from HttpServletRequest/Response inside DriverServlet.
* Every command handler returns ResultType.SUCCESS and those handlers that return an actual value do so through a level of indirection. This commit changes command handlers to just return results directly to the caller, making it possible to delete a lot of unnecessary code.
* Move static resource serving code into DriverServlet. It is not part of the JSON wire protocol and including it in the command dispatcher complicates planned refactoring and other code cleanup.
* Mobile - Network Connection implementation for Java and Python.
* ChromeDriver 2.10.267517 binds to the loopback address instead of 0.0.0.0, so only attempt to connect using the loopback address.
* Code comment changes for wait()
* added task name to SCHEDULE_TASK event
* Eclipse compiler update for Java 8 support
* Updating naive user agent string checks to account for IE11
* Adding Windows 8.1 detection to Platform.extractFromSysProperty
* retry a test failure if there was a 'sauce' issue, like we exceeded the total time a test session is allowed to take.
* adding Windows 8.1 platform, so we can use it in saucelabs for IE11 testing
* Remove deprecated functions on webdriver.promise.Promise class * Use templates with webdriver.promise.Promise to improve types documentation.
* Loosen input type to webdriver.stacktrace.getStack_ to account for an rare condition in FF 28+ where the Error() constructor returns undefined (not sure what causes it, just know it happens)
* Add ability to save an abitrary base64 string as a screenshot from a WebDriverJS test running in a browser.
* When Firefox is configured to accept all SSL certs (which is the default behavior), we need to set a time offset to prevent Firefox from using HSTS (HTTP Strict Transport Security). If we don't do this, Firefox will pre-fetch the certs for sites that should always be accessed over HTTPS and allows Firefox to catch man-in-the-middle attacks. While this is A Good Thing for users, it prevents WebDriver from accepting self-signed certs for these domains (e.g. when they are accessed through a HTTPS proxy).
* Remove unnecessary dependency on bouncycastle.
* Making ChromeDriver directly implement the interfaces representing features it implements.
* Updating build process for Firefox native events components to use gecko 29 SDK
* Updating buck version to latest OSS release
* Use addEventListener if possible. Fixes issue 6680
* Packaging webdriven selenium (emulator) to client-combined jar. Fixes issue 7206
* Don't use system path separators when computing URL paths.
* Make Cookie serializable
* Ignoring a test for HtmlUnitDriver that can't be run due to HtmlUnit restrictions
* Allowing FindBy, FindBys, FindAll annotations on types
* Minor cleanup FirefoxBinary.java
* Adding Firefox native event version support to CHANGELOG
* Adding version number to the capabilities returned by htmlunitdriver. Fixes issue 7110
* Implementing augmentation indicator as an annotation
* Error handling for startSession is handled in the parent class now.
* Remove deprecated functions.
* Revert "Fixing Java 8 incompatibility caused by use of old jruby" because it breaks java 7 compatibility :(
* Fixing Java 8 incompatibility caused by use of old jruby
* Export logging API from main webdriver module.
* Setting pixel density to be independent from OS settings. Fixes issue 6112

hu alter

unread,
May 28, 2014, 4:22:36 AM5/28/14
to seleniu...@googlegroups.com
hi Haritha,
from the selenium official note ,i just saw that with selenium 2.41.0 ,it can support firefox 28 .see below :
currently there's no plan for firefox 29 supported .
hope this can help u ,see more detail here:

v2.41.0
=======
WebDriver:
* Update to support native events for Firefox 28 (removed native event
support for Firefox 26). Native events are now supported for the
following Firefox versions:

17 (immediately previous ESR release)
24 (current ESR release)
27 (immediately previous release
28 (current release)

* Fixed capabilities to be sent properly encoded. For instance,
capabilities for mobile have copyright signs.
* Renamed some commands in the Firefox driver to prepare for Selenium
3. This essentially means that we're mirroring the names of the
commands in the function names within the driver. Also implemented
handling a Selenium 3 style "sessionId" in a Command received by a
Selenium 2 server.
* Implemented support for switching context as described here:
http://code.google.com/p/selenium/source/browse/spec-draft.md?repo=mobile#133.
This feature will be used by mobile WebDriver users to switch
between different contexts like the native or the webview UI element
tree. The feature is end to end tested with latest Selendroid
snapshot version (6a126ab). In the langauge bindings, this is
implemented as a role-based interface. Subclasses of RemoteWEbDriver
that need this should extend TargetLocator and use covariant return
types to keep everything happy and sweet.
* Removed InternetExplorerDriver constructor that accepts
WindowsProxyManager as a parameter. Proxy management moved to
IEDriverServer and WindowsProxyManager is used for RC only now.
* Removed use of VK_ENTER since its been removed from Firefox. PUA
code uses VK_RETURN now like Mozilla Tools.
* Added switch to parent frame command to the wire protocol and API.
* Added httpOnly flag to Cookie JSON object.
* (on behalf of Tobias Lidskog): Added property for silencing
chromedriver. The Java property "webdriver.chrome.silentOutput" is
now used to set the default value for silent mode in chromedriver
using the ChromeDriverService class. This is analogous to the
existing system property for controlling verbose mode.
* (on behalf of Yi Zeng): Updated download link to googleapis.com
* Reduced the visibility of a deprecated class in the htmlunit driver.
* Removed deprecated FirefoxProfile.setProxyPreferences method.
* Removed deprecated ChromeOptions.setExperimentalOptions
* FIXED: 4843: (on behalf of Jonatan Kronqvist): Regard all modifier
keys in SingleKeyAction. An earlier commit added META, but COMMAND
and LEFT_* were left out as they were misinterpreted as aliases,
which they aren't (they onlyuse the enum definition to get the same
character code of the keys).
* FIXED: 5331: Added javadoc to JavascriptExecutor executeAsyncScript
about the default timeout. Also added some extra information on
troubleshooting common issues.
* FIXED: 7014: Fixed parameters parsing.
* FIXED: 7033: Fixed javadoc.

WebDriverJS:
* FIXED: 7105: Properly bind "this" for beforeEach/it/afterEach in
mocha integration.

Grid:
* Modified to ignore exceptions during the clean-up process if failing
to start a RemoteWebDriver instance.
* FIXED: 6770: Setting a timeout when Jetty has low resources to
prevent hub from hanging.
* FIXED: 6771: If a session times out and the browser was never
started, it should still be cleaned up on the hub side.
BeforeRelease should then be a no-op and not throw.
* FIXED: 6772: Added a configuration parameter to set the number of
threads Jetty uses. Default is -1, which implements the current
behavior (255 threads from Jetty's default settings)
* FIXED 6773: Consuming the request in all cases to properly release
resources.
* FIXED: 6811: Clean up immediately if starting a driver or session
errors in RemoteWebDriver.
* FIXED: 6878: Actually pass the response body to CommandListener
implementations, per the interface contract.
* FIXED: 7047: Updated a grid timeout property that seems to have been
overlooked in a previous cleanup.

RC:
* Added lost quotes in JSON format (RC).
* Removed old version of Selenium RC emulation and leaving the new one
in place.



For more options, visit https://groups.google.com/d/optout.



--
Best Regards
 Alter.hu
Reply all
Reply to author
Forward
0 new messages