Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

selenium-support not included #109

Closed
matrei opened this issue Dec 19, 2024 · 0 comments
Closed

selenium-support not included #109

matrei opened this issue Dec 19, 2024 · 0 comments

Comments

@matrei
Copy link
Contributor

matrei commented Dec 19, 2024

selenium-support is an optional dependency in geb-core.
This means it will not be carried forward transitively.
It needs to included explicitly.

Unable to find class 'org.openqa.selenium.support.ui.Select', which is required when interacting with select elements.

This class is part of the selenium-support jar, which is not part of the WebDriver core that is depended on by each of the drivers. This means that you need to add this jar to your project yourself as an explicit dependency.
This jar is available from maven central: http://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-support

The use of this class was introduced in Geb 0.6.1 due to changes in WebDriver 2.6.0
java.lang.ClassNotFoundException: Unable to find class 'org.openqa.selenium.support.ui.Select', which is required when interacting with select elements.

This class is part of the selenium-support jar, which is not part of the WebDriver core that is depended on by each of the drivers. This means that you need to add this jar to your project yourself as an explicit dependency.
This jar is available from maven central: http://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-support
The use of this class was introduced in Geb 0.6.1 due to changes in WebDriver 2.6.0
	at geb.navigator.SelectFactory.loadSelectClass(SelectFactory.groovy:32)
	at geb.navigator.SelectFactory.createSelectFor(SelectFactory.groovy:25)
	at geb.navigator.DefaultNavigator.setSelectValue(DefaultNavigator.groovy:965)
	at geb.navigator.DefaultNavigator.setInputValue(DefaultNavigator.groovy:931)
	at geb.navigator.DefaultNavigator.setInputValues_closure56(DefaultNavigator.groovy:922)
	at groovy.lang.Closure.call(Closure.java:433)
	at geb.navigator.DefaultNavigator.setInputValues(DefaultNavigator.groovy:921)
	at geb.navigator.DefaultNavigator.value(DefaultNavigator.groovy:652)
	at geb.module.Select.setSelected(Select.groovy:31)
	at groovy.lang.GroovyObject.setProperty(GroovyObject.java:61)
	at geb.content.TemplateDerivedPageContent.propertyMissing(TemplateDerivedPageContent.groovy:111)
	at groovy.lang.GroovyObject.setProperty(GroovyObject.java:61)
	at spec.AclEntrySpec.testUniqueOrder(AclEntrySpec.groovy:75)
matrei added a commit that referenced this issue Dec 19, 2024
@matrei matrei closed this as completed in 68394d9 Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant