I think it is a minor problem with the plug-in scripts which generate selenium tests. If you are going to write your own selenium tests, then this error is really not a pain and can be ignored.
But, if you want to scaffold the selenium tests, then you can follow the following steps to get rid of this error (workaround):
* Go to plugins/selenium-0.4/scripts directory in your grails project
* Replace ${appContext} with "selenium-test" or whaterver is the name of your grails app
There are only 5-6 occurrences in 3 files or so.
Even better, use the following command (if you are on bash shell & have perl installed) to do the replacements. You should be in plugins/selenium-0.4/scripts directory when running this.
for i in `ls *.groovy`; do perl -pi -e's/\${appContext}/selenium-test/' $i ; done
Hope this helps,
Regards,
-Deepak
http://www.IntelliGrape.com
On Wed, Jul 16, 2008 at 5:02 PM, Erik Slagter <
erik.slagter@...> wrote:
I reported the same problem last week. Nobody responded….
Van: Michael Berg
[mailto:michael.berg@...]
Verzonden: woensdag 16 juli 2008 13:11
Aan: user@...
Onderwerp: [grails-user] Selenium 0.4 with Grails 1.0.3?
Is
there a problem with selenium 0.4 with Grails 1.0.3?
C:\selenium-test\>
grails create-selenium-test mytest.gsp
(...usual
blabla from Grails...)
Could
not execute method appContext.
No such property: appContext for class: CreateSeleniumTest_groovy
Anyone
have an idea what might be wrong?