Thomas, I agree that it's surprising that you are getting this exception as org.openqa.selenium.NotFoundException is indeed part of selenium-api artifact. On thing that surprises me further is that I don't see org.openqa.selenium.NotFoundException being used in Select.findOptionsByValue(), at least not in 3.141.59. What is the version of selenium-support and selenium-api artifacts that you have on the classpath?
Cheers, Marcin On Thu, Feb 25, 2021 at 3:28 PM Thomas Hirsch <[email protected]> wrote: > Hi, > sometimes a test of mine fails with this stacktrace: > > ``` > java.lang.NoClassDefFoundError: Could not initialize class > org.openqa.selenium.NotFoundException > at > org.openqa.selenium.support.ui.Select.findOptionsByValue(Select.java:287) > at > org.openqa.selenium.support.ui.Select.selectByValue(Select.java:190) > at > geb.navigator.DefaultNavigator.setSelectValue(DefaultNavigator.groovy:988) > at > geb.navigator.DefaultNavigator.setInputValue(DefaultNavigator.groovy:931) > at > geb.navigator.DefaultNavigator.setInputValues_closure56(DefaultNavigator.groovy:922) > at groovy.lang.Closure.call(Closure.java:412) > at > geb.navigator.DefaultNavigator.setInputValues(DefaultNavigator.groovy:921) > at > geb.navigator.DefaultNavigator.value(DefaultNavigator.groovy:652) > at > geb.content.TemplateDerivedPageContent.value(TemplateDerivedPageContent.groovy:34) > at > geb.content.PageContentSupport.propertyMissing(PageContentSupport.groovy:54) > at geb.Page.propertyMissing(Page.groovy:110) > at geb.Browser.propertyMissing(Browser.groovy:239) > at geb.spock.GebSpec.propertyMissing(GebSpec.groovy:1) > at ... > ``` > The line in the spec is using the assignment operator, i.e. `myElement = > myValue` where `myElement` is a Geb navigator pointing to a HTML-Select > element. > > Regardless of what the test does, I would like to understand how this > Exception can even happen. The class is present in my library list, it is > part of the selenium-api package, which (I assume) Geb depends on. > > Thomas > > -- > You received this message because you are subscribed to the Google Groups > "Geb User Mailing List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/geb-user/ecd08d16-afcf-495e-93a3-c2a23b9b25een%40googlegroups.com > <https://groups.google.com/d/msgid/geb-user/ecd08d16-afcf-495e-93a3-c2a23b9b25een%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/CA%2B52dQR2VHddPcUDjNpa7wnBFQrnzzB%2Bo%3DUf5bQQNrvdP296Ag%40mail.gmail.com.
