java.lang.IllegalStateException: UnixUtils may not be used on Windows``` ## Steps to reproduce - Compile and run this JUnit test. It fails with an exception when reaching ```driver.quit()```. ```java package ihm.test; import org.junit.Test; import org.openqa.selenium.firefox.MarionetteDriver; public class MarionetteTest { @Test public void assertOk() { MarionetteDriver driver = new MarionetteDriver(); try { driver.navigate().to("http://www.chezmoicamarche.org/"); } finally { driver.quit(); } } } ``` ```

GitHub | Toilal | 5 months ago
  1. 0

    MarionetteDriver#quit() => java.lang.IllegalStateException: UnixUtils may not be used on Windows

    GitHub | 5 months ago | Toilal
    java.lang.IllegalStateException: UnixUtils may not be used on Windows``` ## Steps to reproduce - Compile and run this JUnit test. It fails with an exception when reaching ```driver.quit()```. ```java package ihm.test; import org.junit.Test; import org.openqa.selenium.firefox.MarionetteDriver; public class MarionetteTest { @Test public void assertOk() { MarionetteDriver driver = new MarionetteDriver(); try { driver.navigate().to("http://www.chezmoicamarche.org/"); } finally { driver.quit(); } } } ``` ```
  2. 0
    You can solve this by using an actual Service instead of an IntentService
  3. 0
    You should define the TestContext class in your classpath
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    Execute mvn dependency:tree from your project's root directory.
  6. 0
    In all ActiveAndroid tables there should be a primary key field with the name "Id" (with a capital "I").

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      UnixUtils may not be used on Windows``` ## Steps to reproduce - Compile and run this JUnit test. It fails with an exception when reaching ```driver.quit()```. ```java package ihm.test; import org.junit.Test; import org.openqa.selenium.firefox.MarionetteDriver; public class MarionetteTest { @Test public void assertOk() { MarionetteDriver driver = new MarionetteDriver(); try { driver.navigate().to("http://www.chezmoicamarche.org/"); } finally { driver.quit(); } } } ``` ```

      at org.openqa.selenium.remote.RemoteWebDriver.execute()
    2. Selenium
      RemoteWebDriver.quit
      1. org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:665)
      2. org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:701)
      3. org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:526)
      3 frames
    3. ihm.test
      MarionetteTest.assertOk
      1. ihm.test.MarionetteTest.assertOk(MarionetteTest.java:15)
      1 frame