Help me to open Firefox browser

83 views
Skip to first unread message

Sara Raj

unread,
Sep 9, 2016, 8:27:04 AM9/9/16
to Selenium Users
package learn;

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

public class learn {

public static void main(String[] args) {
// TODO Auto-generated method stub
System.setProperty("webdriver.gecko.driver",
"C:\\Users\\Aurora\\Downloads\\geckodriver-v0.10.0-win64.zip\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();

}

}


This is my code

and this is my error

Exception in thread "main" java.lang.IllegalStateException: The driver executable does not exist: C:\Users\Aurora\Downloads\geckodriver-v0.10.0-win64.zip\geckodriver.exe
at com.google.common.base.Preconditions.checkState(Preconditions.java:199)
at org.openqa.selenium.remote.service.DriverService.checkExecutable(DriverService.java:121)
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:116)
at org.openqa.selenium.firefox.GeckoDriverService.access$100(GeckoDriverService.java:38)
at org.openqa.selenium.firefox.GeckoDriverService$Builder.findDefaultExecutable(GeckoDriverService.java:91)
at org.openqa.selenium.remote.service.DriverService$Builder.build(DriverService.java:296)
at org.openqa.selenium.firefox.FirefoxDriver.createCommandExecutor(FirefoxDriver.java:245)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:220)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:215)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:124)
at learn.learn.main(learn.java:12)


 I have tried to unzip the geckodrive after that also it is not working

Thanks in advance

Tushar Patil

unread,
Sep 12, 2016, 8:48:40 AM9/12/16
to Selenium Users
Use this Code

//*******************************************************************

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



public class learn {

public static void main(String[] args) {
// TODO Auto-generated method stub
WebDriver driver = new FirefoxDriver();
}

}



//*******************************************************************

Praveen Kumar

unread,
Sep 12, 2016, 1:05:24 PM9/12/16
to seleniu...@googlegroups.com
Gecko driver is not working properly in 32 bit systems. wait for the new version to released for the issue which u mentioned

System.setProperty("webdriver.gecko.driver",
"C:\\Users\\Aurora\\Downloads\\geckodriver-v0.10.0-win64.zip\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();

above works properly in 64 bits systems

--
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-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/2f6e0a85-d23a-46ab-a5b8-552d2a34dcdd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages