java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1

GitHub | airudah2000 | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    StringIndexOutOfBoundsException caused by geckodriver

    GitHub | 9 months ago | airudah2000
    java.lang.RuntimeException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  2. 0

    Why getting an error when setting up PhantomJS driver?

    Stack Overflow | 8 months ago | Laura G
    java.lang.RuntimeException: org.openqa.selenium.NoSuchElementException: Unable to locate element with ID: available-downloads For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html Driver info: driver.version: HtmlUnitDriver
  3. 0

    UnknownHostException in ChromeDriverManager.getInstance().setup();

    GitHub | 1 year ago | smtripathi99
    java.lang.RuntimeException: java.net.UnknownHostException: chromedriver.storage.googleapis.com
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Explicit version passing does not work

    GitHub | 12 months ago | jerzynowakowski
    java.lang.RuntimeException: java.lang.IllegalArgumentException: Parameter 'directory' is not a directory
  6. 0

    Adding direct link download support

    GitHub | 2 months ago | kornilovk
    java.lang.RuntimeException: org.jsoup.UnsupportedMimeTypeException: Unhandled content type. Must be text/*, application/xml, or application/xhtml+xml. Mimetype=application/octet-stream, URL=https://download.microsoft.com/download/3/2/D/32D3E464-F2EF-490F-841B-05D53C848D15/MicrosoftWebDriver.exe

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.RuntimeException

      java.lang.StringIndexOutOfBoundsException: String index out of range: -1

      at io.github.bonigarcia.wdm.BrowserManager.manage()
    2. io.github.bonigarcia
      BrowserManager.setup
      1. io.github.bonigarcia.wdm.BrowserManager.manage(BrowserManager.java:272)
      2. io.github.bonigarcia.wdm.BrowserManager.setup(BrowserManager.java:103)
      3. io.github.bonigarcia.wdm.BrowserManager.setup(BrowserManager.java:82)
      3 frames
    3. safe
      A_BeforeTestsSpec.<init>
      1. safe.SafeBaseSpec.<init>(SafeBaseSpec.scala:87)
      2. safe.A_BeforeTestsSpec.<init>(A_BeforeTestsSpec.scala:10)
      2 frames
    4. Java RT
      Class.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      5. java.lang.Class.newInstance(Class.java:442)
      5 frames
    5. scalatest
      Runner$$anonfun$37.apply
      1. org.scalatest.tools.Runner$.genSuiteConfig(Runner.scala:2644)
      2. org.scalatest.tools.Runner$$anonfun$37.apply(Runner.scala:2461)
      3. org.scalatest.tools.Runner$$anonfun$37.apply(Runner.scala:2460)
      3 frames
    6. Scala
      List.map
      1. scala.collection.immutable.List.map(List.scala:273)
      1 frame
    7. scalatest
      Runner$.run
      1. org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:2460)
      2. org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1044)
      3. org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1043)
      4. org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:2722)
      5. org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1043)
      6. org.scalatest.tools.Runner$.run(Runner.scala:883)
      6 frames