Unable to open Firefox Browser.

47 views
Skip to first unread message

Mounika Sarvisetty

unread,
Jul 10, 2019, 12:04:03 PM7/10/19
to Selenium Users
Hi All,
I am unable to open firefox browser using selenium.
I have used the below code.

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


public class Chrome
{
    public static void main(String[] args)
    {
                
        System.setProperty("webdriver.gekco.driver","C://Users//Desktop//Testing Prep//Drivers//GekcoDriver/gekcodriver.exe");
        WebDriver driver=new FirefoxDriver();
     }

}

Jagu Lakshmi Pavani

unread,
Jul 10, 2019, 12:10:58 PM7/10/19
to seleniu...@googlegroups.com
What error is it giving??

--
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/4fab5e5d-5e5e-4fe6-b7ea-8534de598540%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Lakshmi Pavani Jagu,
+56 961133614,
jlpav...@gmail.com

Mounika Sarvisetty

unread,
Jul 10, 2019, 12:12:24 PM7/10/19
to Selenium Users
Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.gecko.driver system property; for more information, see https://github.com/mozilla/geckodriver. The latest version can be downloaded from https://github.com/mozilla/geckodriver/releases
at com.google.common.base.Preconditions.checkState(Preconditions.java:847)
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:134)
at org.openqa.selenium.firefox.GeckoDriverService.access$100(GeckoDriverService.java:44)
at org.openqa.selenium.firefox.GeckoDriverService$Builder.findDefaultExecutable(GeckoDriverService.java:167)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:355)
at org.openqa.selenium.firefox.FirefoxDriver.toExecutor(FirefoxDriver.java:190)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:147)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:125)
at SeleniumPractice.Chrome.main(Chrome.java:18)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)

On Wednesday, July 10, 2019 at 11:10:58 AM UTC-5, Jagu Lakshmi Pavani wrote:
What error is it giving??

On Wed, Jul 10, 2019 at 12:04 PM Mounika Sarvisetty <msarv...@gmail.com> wrote:
Hi All,
I am unable to open firefox browser using selenium.
I have used the below code.

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


public class Chrome
{
    public static void main(String[] args)
    {
                
        System.setProperty("webdriver.gekco.driver","C://Users//Desktop//Testing Prep//Drivers//GekcoDriver/gekcodriver.exe");
        WebDriver driver=new FirefoxDriver();
     }

}

--
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 seleniu...@googlegroups.com.

Shanthi Kandasamy

unread,
Jul 10, 2019, 12:13:22 PM7/10/19
to Selenium Users
Hi Mounicka ,

Are you sure you have added all the required jars?

Rajeswari Nimmagadda

unread,
Jul 10, 2019, 12:19:50 PM7/10/19
to Selenium Users
In exe path you missed one slash please check.

Shanthi Kandasamy

unread,
Jul 10, 2019, 12:24:02 PM7/10/19
to Selenium Users


Hey you have misspelled the word gecko..check it out

Mounika Sarvisetty

unread,
Jul 10, 2019, 12:30:23 PM7/10/19
to Selenium Users
yeah it worked now thanku.

vero ss

unread,
Jul 10, 2019, 1:17:19 PM7/10/19
to seleniu...@googlegroups.com
Yes.. 😶

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.

vero ss

unread,
Jul 10, 2019, 1:17:19 PM7/10/19
to seleniu...@googlegroups.com
Check that the firefox browser is updated and has a latest version

--
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.
Reply all
Reply to author
Forward
0 new messages