UnreachableBrowserException in launching Firefox

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

UnreachableBrowserException in launching Firefox

Pavithra lal
I am facing the exception - 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.

I am using Firefox version 53, GeckoDriver 16, Selenium 3.4 in Windows 8 64 bit system. I tried all possible solution in Stackoverflow...Please help me...Am I doing anything wrong with version compatibility...???????????/

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/22d91fd3-a5d6-4bee-8e81-5ee8cc00f721%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: UnreachableBrowserException in launching Firefox

Akshat Gupta
Code?

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/e911cc6c-8d75-4384-9a7a-1b85a2f69da1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: UnreachableBrowserException in launching Firefox

Pavithra lal
This is the code

package TestPackage;

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

public class MyClass {
public static void main(String[] args) {
       // declaration and instantiation of objects/variables
    WebDriver driver ;
    System.setProperty("webdriver.firefox.marionette","C:\\geckodriver-v0.16.1-win64\\geckodriver.exe");
    driver = new FirefoxDriver();
       String baseUrl = "http://newtours.demoaut.com";
       String expectedTitle = "Welcome: Mercury Tours";
       String actualTitle = "";

       // launch Fire fox and direct it to the Base URL
       driver.get(baseUrl);

       // get the actual value of the title
       actualTitle = driver.getTitle();

       /*
        * compare the actual title of the page with the expected one and print
        * the result as "Passed" or "Failed"
        */
       if (actualTitle.contentEquals(expectedTitle)){
           System.out.println("Test Passed!");
       } else {
           System.out.println("Test Failed");
       }
       
       //close Fire fox
       driver.close();
      
       // exit the program explicitly
       System.exit(0);
   }
}

On Monday, 29 May 2017 15:12:30 UTC+5:30, Akshat Gupta wrote:
Code?

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/920b5ea9-9c23-444f-a384-8d96d76fab3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: UnreachableBrowserException in launching Firefox

Akshat Gupta
In reply to this post by Pavithra lal
Hi

Try to use this,

"webdriver.gecko.driver" in setProperty


--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/12b9ac2a-70e6-4ece-85db-bcff733ff102%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: UnreachableBrowserException in launching Firefox

Pavithra lal
Thank you so much. It is working now. This is my first test automation script....

And can U explain how it got resolved? What is the cause?

On Monday, 29 May 2017 15:20:03 UTC+5:30, Akshat Gupta wrote:
Hi

Try to use this,

"webdriver.gecko.driver" in setProperty


--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/107c556f-5db6-4ce6-ab75-584d97bced40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: UnreachableBrowserException in launching Firefox

Akshat Gupta
In reply to this post by Pavithra lal
http://toolsqa.com/selenium-webdriver/how-to-use-geckodriver/

https://stackoverflow.com/questions/43272919/difference-between-webdriver-firefox-marionette-webdriver-gecko-driver

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3c0b47c9-7a25-4037-a781-c908dfc847fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: UnreachableBrowserException in launching Firefox

Pavithra lal
Thank you... Hope there are much to learn....:-)

On Monday, 29 May 2017 15:31:15 UTC+5:30, Akshat Gupta wrote:
<a href="http://toolsqa.com/selenium-webdriver/how-to-use-geckodriver/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftoolsqa.com%2Fselenium-webdriver%2Fhow-to-use-geckodriver%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEJSkAejp2jBcmJFl4KmgziK-EeEg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftoolsqa.com%2Fselenium-webdriver%2Fhow-to-use-geckodriver%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEJSkAejp2jBcmJFl4KmgziK-EeEg&#39;;return true;">http://toolsqa.com/selenium-webdriver/how-to-use-geckodriver/

<a href="https://stackoverflow.com/questions/43272919/difference-between-webdriver-firefox-marionette-webdriver-gecko-driver" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F43272919%2Fdifference-between-webdriver-firefox-marionette-webdriver-gecko-driver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH9h-4VVmzgni_IDhuhgEX9yPfi7Q&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fstackoverflow.com%2Fquestions%2F43272919%2Fdifference-between-webdriver-firefox-marionette-webdriver-gecko-driver\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH9h-4VVmzgni_IDhuhgEX9yPfi7Q&#39;;return true;">https://stackoverflow.com/questions/43272919/difference-between-webdriver-firefox-marionette-webdriver-gecko-driver

--
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8b65119f-7306-4f69-bd1d-132f71726869%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.