java.lang.IndexOutOfBoundsException: Index: 3, Size: 3

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

Thrown if trying to access an index which is out of bounds on objects like String, Array, or Vector. Any negative integer less than or equal to -1 and positive integer greater than or equal to the size of the object is an index which would be out of bounds

,
Expert tip

Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.

java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at com.codeborne.selenide.impl.CollectionElement.getWebElement(CollectionElement.java:29)
at com.codeborne.selenide.impl.SelenideElementProxy.dispatchAndRetry(SelenideElementProxy.java:85)
at com.codeborne.selenide.impl.SelenideElementProxy.invoke(SelenideElementProxy.java:58)
at com.sun.proxy.$Proxy9.findElements(Unknown Source)
at com.codeborne.selenide.impl.WebElementSelector.findElements(WebElementSelector.java:37)
at com.codeborne.selenide.impl.BySelectorCollection.getActualElements(BySelectorCollection.java:28)
at com.codeborne.selenide.impl.CollectionElement.getWebElement(CollectionElement.java:29)
at com.codeborne.selenide.commands.ToWebElement.execute(ToWebElement.java:11)
at com.codeborne.selenide.commands.ToWebElement.execute(ToWebElement.java:8)
at com.codeborne.selenide.commands.Commands.execute(Commands.java:136)
at com.codeborne.selenide.impl.SelenideElementProxy.invoke(SelenideElementProxy.java:52)
at com.sun.proxy.$Proxy9.toWebElement(Unknown Source)
at com.codeborne.selenide.impl.ElementFinder.getSearchContext(ElementFinder.java:69)
at com.codeborne.selenide.impl.ElementFinder.getWebElement(ElementFinder.java:56)
at com.codeborne.selenide.commands.GetWrappedElement.execute(GetWrappedElement.java:11)
at com.codeborne.selenide.commands.GetWrappedElement.execute(GetWrappedElement.java:8)
at com.codeborne.selenide.commands.Commands.execute(Commands.java:136)
at com.codeborne.selenide.impl.SelenideElementProxy.dispatchAndRetry(SelenideElementProxy.java:82)
at com.codeborne.selenide.impl.SelenideElementProxy.invoke(SelenideElementProxy.java:58)
at com.sun.proxy.$Proxy9.getWrappedElement(Unknown Source)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
2 times, 5 months ago
3 times, 1 year ago
4 times, 1 year ago
4 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.