Selenium 3 beta and FF 47/48

248 views
Skip to first unread message

Ram Narayan

unread,
Aug 22, 2016, 1:06:55 AM8/22/16
to Selenium Users
Hi All,
I am not able to launch the browser using selenium-server-standalone-3.0.0-beta1 and tried with selenium-server-standalone-3.0.0-beta1 as well. Th firefox browsers i used are 47.1 and 48.1. and used geckodriver 10.0

please follow the below code ..

package seleniumConcepts;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.MarionetteDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;

public class FFMarionatte_AlternateFFDriver {
WebDriver driver;
@BeforeTest
public void createDriverInstance()
{
driver = new FirefoxDriver();
// System.setProperty("webdriver.gecko.driver","E:\\Fresh Start\\TestAutomationConcepts\\Resources\\geckodriver.exe");
 
System.setProperty("webdriver.gecko.driver","E:\\Fresh Start\\TestAutomationConcepts\\Resources\\geckodriver.exe");
driver = new FirefoxDriver();
driver.manage().window().maximize();
}
@Test
public void testMethod()
{
}

}


I've gone through http://www.way2selenium.com/2016/08/how-to-work-with-firefox-browser-using.html and the seleniumeasy article also , nothing helps much.

Stacktrace : 

[TestNG] Running:
  C:\Users\ramnarayan.patro\AppData\Local\Temp\testng-eclipse--1512483406\testng-customsuite.xml

FAILED CONFIGURATION: @BeforeTest createDriverInstance
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:199)
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:109)
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 seleniumConcepts.FFMarionatte_AlternateFFDriver.createDriverInstance(FFMarionatte_AlternateFFDriver.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:510)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:211)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
at org.testng.TestRunner.beforeRun(TestRunner.java:648)
at org.testng.TestRunner.run(TestRunner.java:616)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:359)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:354)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:312)
at org.testng.SuiteRunner.run(SuiteRunner.java:261)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1191)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1116)
at org.testng.TestNG.run(TestNG.java:1024)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:112)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:205)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:176)

SKIPPED: testMethod

===============================================
    Default test
    Tests run: 1, Failures: 0, Skips: 1
    Configuration Failures: 1, Skips: 0
===============================================


===============================================
Default suite
Total tests run: 1, Failures: 0, Skips: 1
Configuration Failures: 1, Skips: 0
===============================================

[TestNG] Time taken by org.testng.reporters.JUnitReportReporter@244038d0: 19 ms
[TestNG] Time taken by org.testng.reporters.EmailableReporter2@33833882: 19 ms
[TestNG] Time taken by org.testng.reporters.XMLReporter@73a28541: 27 ms
[TestNG] Time taken by org.testng.reporters.jq.Main@53bd815b: 63 ms
[TestNG] Time taken by [FailedReporter passed=0 failed=0 skipped=0]: 3 ms
[TestNG] Time taken by org.testng.reporters.SuiteHTMLReporter@76ccd017: 23 ms

Aniket

unread,
Aug 22, 2016, 1:20:04 AM8/22/16
to Selenium Users
Hi Ram,
There is open issue with firefox 48 and geckodriver with latest beta jar of selenium so use firefox 45/46 for your tests.

ramnarayan patro

unread,
Aug 22, 2016, 1:22:02 AM8/22/16
to seleniu...@googlegroups.com
Alright so 47 also doesn't work. fine i'll try with 46.

--
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/nPuMXD_uwHc/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/620e37a6-1150-4806-b9a9-30337bba5092%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Biswajit Pattanaik

unread,
Aug 31, 2016, 3:52:35 AM8/31/16
to Selenium Users
Hi Ram,

You can do one thing download selenium 2.53.1, FF-47 is working fine.
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.
Reply all
Reply to author
Forward
0 new messages