3

Can anyone help with using Selenium-RC + Grails? I have used Selenium with Java but had no problem writing the code and launching the browser. But is the source code of my project required when i need to use Selenium-RC with Grails?

Any links to resources to learn will be very helpful.

dzieciou
10.5k9 gold badges49 silver badges102 bronze badges
asked Feb 7, 2012 at 10:02
1
  • 3
    I am not sure I understand your question. Did something happen that suggested to you that using Selenium with grails might require accessing your web application's source code? Commented Mar 8, 2012 at 17:04

1 Answer 1

2

Try Geb, it's a groovy wrapper for Selenium:

http://www.gebish.org/

http://grails.org/plugin/geb

answered Feb 7, 2012 at 14:03
4
  • i want to automate scenario so the regression becomes less time consuming. so my biggest question i am facing now is.. can we do blackbox testing using selenium-rc using grails?? or it is only used to do whitebox testing Commented Feb 7, 2012 at 14:16
  • 6
    You cannot do whitebox testing with Selenium. Selenium drives a browser to interact with a web page, is has no concept of the code layer behind the website (e.g. PHP, ASP, Ruby, etc). Commented Feb 7, 2012 at 14:22
  • @Ardesco, it might however be aware of JavaScript code on browser-side, correct? Commented Aug 31, 2013 at 10:08
  • 2
    Depends on your definition of aware. You can add hooks into your JavaScript code that Selenium can use and you can use a JavascriptExecutor to use these hooks. You can also use a JavaScriptExecutor to run your own JavaScript (Basically exactly what an end user could do with a JavaScript console). Commented Aug 31, 2013 at 12:10

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.