Take the 2-minute tour ×
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It's 100% free, no registration required.

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.

share|improve this question
2  
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? –  user246 Mar 8 '12 at 17:04
add comment

1 Answer

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

http://www.gebish.org/

http://grails.org/plugin/geb

share|improve this answer
    
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 –  Kanishka Choudhury Feb 7 '12 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). –  Ardesco Feb 7 '12 at 14:22
    
@Ardesco, it might however be aware of JavaScript code on browser-side, correct? –  dzieciou Aug 31 '13 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). –  Ardesco Aug 31 '13 at 12:10
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.