Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:Grails 1.2.0 and selenium-rc 0.2
Description
I am facing the following error:
Error executing script TestApp: java.lang.ClassNotFoundException: grails.plugins.selenium.SeleniumManager
gant.TargetExecutionException: java.lang.ClassNotFoundException: grails.plugins.selenium.SeleniumManager
I noticed that the file selenium-java-client-driver-1.0.1.jar is not being deployed in the folder
.grails\1.2.0\projects\<my proj>\plugins\selenium-rc-0.2\lib
If I put it there manually, the error disappears.
The SeleniumManager class is not part of the jar, it is part of the plugin itself. The jar is now included via Grails' new dependency resolution DSL, therefore you do not need to manually copy the jar.
The problem you saw appears to be the same as http://jira.codehaus.org/browse/GRAILSPLUGINS-1855 which is that the plugin's _Events.groovy refers to SeleniumManager which may not yet be compiled. This has been fixed however sometimes when upgrading a plugin Grails seems to not recompile all the scripts right away so the problem you're seeing may be down to an older version of the plugin's _Events script hanging around before being recompiled.
Could you please run 'grails clean' followed by 'grails test-app -functional' and let me know if you still see the same issue?