Mark,
As a second parameter of setproperty you should give path upto geckodriver exe.
System.setProperty("webdriver.gecko.driver", "c:\\temp");
--
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/b35bcfee-70f5-436a-907f-4accab1bad32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks for the reply, but that is what I am doing the path is c:\temp
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/b35bcfee-70f5-436a-907f-4accab1bad32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/51KxSH-I48U/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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAJ5sn7SqJeUWrj%2B%3Due4ZD2R%2BhBq1eQzsLb6iE%3Dy0HOiTbB3TVA%40mail.gmail.com.
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/b35bcfee-70f5-436a-907f-4accab1bad32%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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/51KxSH-I48U/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAJ5sn7SqJeUWrj%2B%3Due4ZD2R%2BhBq1eQzsLb6iE%3Dy0HOiTbB3TVA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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/CY4PR1601MB1223FFC8DD27FAEBD2F462C8B7EB0%40CY4PR1601MB1223.namprd16.prod.outlook.com.
Thanks,
From this I determined that the actual executable name: gecko.exe needs to be in the path set as the second parameter to setProperty. So not only does the path to the executable need to be specified but the actual executable name itself, this is not the way system variables which are paths work normally.
System.setProperty("webdriver.gecko.driver", "c:\\temp\\geckodriver.exe");
That worked.
The SeleniumHQ documentation needs to be updated to explain that the Geckodriver is necessary and how to use it.
From: seleniu...@googlegroups.com [mailto:seleniu...@googlegroups.com] On Behalf Of Ashish Juyal
Sent: Tuesday, August 23, 2016 3:32 AM
To: seleniu...@googlegroups.com
--
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/51KxSH-I48U/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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/selenium-users/CAKw4ajLY1J%2B_iAAAzHYzgBa1XvjWMD2VBsW30DDFRPkweRJj9Q%40mail.gmail.com.
Thanks,
From this I determined that the actual executable name: gecko.exe needs to be in the path set as the second parameter to setProperty. So not only does the path to the executable need to be specified but the actual executable name itself, this is not the way system variables which are paths work normally.
System.setProperty("webdriver.gecko.driver", "c:\\temp\\geckodriver.exe");
That worked.
The SeleniumHQ documentation needs to be updated to explain that the Geckodriver is necessary and how to use it.
From: seleniu...@googlegroups.com [mailto:seleniu...@googlegroups.com] On Behalf Of Ashish Juyal
Sent: Tuesday, August 23, 2016 3:32 AM
To: seleniu...@googlegroups.com
Subject: Re: [selenium-users] Re: new FirefoxDriver() not working
Hi Mark,
Try the below code for gecko driver.
System.setProperty("webdriver.gecko.driver","C:\\Work\\WORK\\Selenium\\geckodriver.exe");
DesiredCapabilities capabilities = DesiredCapabilities.firefox();
capabilities.setCapability("marionette", true);
WebDriver driver = new FirefoxDriver(capabilities);
driver.get("http://www.google.com");
Regards
Ashish Juyal
--
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/51KxSH-I48U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to selenium-use...@googlegroups.com.
To post to this group, send email to seleni...@googlegroups.com.