Which Selenium version supports Mozilla 31.4.0 ESR (CCK-IBM) version.Unable to Launch Firefox

172 views
Skip to first unread message

Ramesh Gupta

unread,
Apr 14, 2015, 11:27:23 PM4/14/15
to seleniu...@googlegroups.com
package collections;

import java.util.List;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxBinary;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
import org.openqa.selenium.ie.InternetExplorerDriver;

public class MultiSelect {

    public static void main(String[] args) {

        FirefoxDriver driver = new FirefoxDriver();
        List<WebElement>
        driver.get("www.google.com");

    }

}
enter code here


Error Recieved:
Exception in thread "main" org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows: 
x-extensions.ibm.com visible

Abhishek Chakraborty

unread,
Apr 15, 2015, 4:40:46 AM4/15/15
to seleniu...@googlegroups.com
Try the below code
**************************
                FirefoxBinary binary=new FirefoxBinary(new File("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe"));
FirefoxDriver driver=new FirefoxDriver(binary, null);
driver.get("www.google.com");

In case u have installed FF in diff location instead of "C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe", give that location. It should work.

--
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/68ad855c-81f9-4e37-927a-8a40c397caf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
~Abhishek

Subhro Mukherjee

unread,
May 7, 2015, 4:55:47 AM5/7/15
to seleniu...@googlegroups.com
Hi Abhishek,

Thanks for the reply.
However, I tried a simple code -
package selenium;

import java.io.File;

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

public class Go {

public static void main(String[] args) {
        FirefoxBinary binary =new FirefoxBinary(new File("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe"));

        FirefoxDriver driver =new FirefoxDriver(binary, null);
        driver.get("www.google.co.in");
        System.out.println("Success");
       
    }

}
What happens is, it loads the page, puts the url and then closes it. and then open a blank browser.
Error...
Exception in thread "main" org.openqa.selenium.remote.UnreachableBrowserException: Error communicating with the remote browser. It may have died.
Build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50'
System info: host: 'ADMINIB-DD0OHJG', ip: '9.109.225.64', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0'
Driver info: driver.version: RemoteWebDriver
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:593)
    at org.openqa.selenium.remote.RemoteWebDriver.get(RemoteWebDriver.java:304)
    at selenium.Go.main(Go.java:13)
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:7055 [/127.0.0.1] failed: Connection refused: connect
    at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:142)
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:319)
    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
    at org.openqa.selenium.remote.internal.ApacheHttpClient.fallBackExecute(ApacheHttpClient.java:144)
    at org.openqa.selenium.remote.internal.ApacheHttpClient.execute(ApacheHttpClient.java:72)
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:133)
    at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.execute(NewProfileExtensionConnection.java:165)
    at org.openqa.selenium.firefox.FirefoxDriver$LazyCommandExecutor.execute(FirefoxDriver.java:362)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:572)
    ... 2 more
Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:96)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:369)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:230)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:212)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:191)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:403)
    at java.net.Socket.connect(Socket.java:642)
    at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72)
    at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:125)
    ... 17 more

Thanks in Advance...

Kumar Harshvardhan

unread,
May 13, 2015, 1:52:57 PM5/13/15
to seleniu...@googlegroups.com
Hi

Please check this link:

https://code.google.com/p/selenium/issues/detail?id=7810

to get the information . Its a known issue.


Thanks

Harshvardhan

Anthony Gao

unread,
May 14, 2015, 8:50:19 AM5/14/15
to seleniu...@googlegroups.com
get latest webdriver version

A R K Satyanarayana Raju

unread,
May 19, 2015, 2:12:53 AM5/19/15
to seleniu...@googlegroups.com
Try Selenium 2.39.0
> --
> 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/9cebc9af-a73e-4350-a219-8226685ad1ec%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
A R K Satyanarayana Raju
Reply all
Reply to author
Forward
0 new messages