# How to use Selenium from Rails

**URL:** <https://www.ruby-forum.com/t/how-to-use-selenium-from-rails/53905>\
**Category:** Rails\
**Created:** [February 16, 2006, 3:37pm UTC](https://www.ruby-forum.com/t/how-to-use-selenium-from-rails/53905 "2006-02-16T15:37:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lstrecv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e68b1a/32.png) [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Post date:** [February 16, 2006, 3:37pm UTC](https://www.ruby-forum.com/t/how-to-use-selenium-from-rails/53905/1 "2006-02-16T15:37:08Z")

</div>

I caught two different approaches to integrate Selenium to Rails:

[http://svn.viney.net.nz/things/rails/plugins/selenium\_testing/README](http://svn.viney.net.nz/things/rails/plugins/selenium_testing/README)

> **[SEO & Sökmotoroptimering - Så fungerar det - And then nothing](https://andthennothing.net)**
>
> SEO, eller sökmotoroptimering, är avgörande för alla företag som vill nå ut till kunder online. Men den överflödiga informationen kan göra att det verkar vara ett mycket komplicerat område, fullt av olika tekniker och idéer. För att göra det enklare...

It seems that the first makes it easy to right the tests, and the second  
makes it easy to run them. Am I correct?

Any chance of the two hooking up and cross polinating?

---

<div class="post-metadata">

**Author:** ![lstrecv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e68b1a/32.png) [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Post date:** [February 16, 2006, 4:42pm UTC](https://www.ruby-forum.com/t/how-to-use-selenium-from-rails/53905/2 "2006-02-16T16:42:51Z")

</div>

List R. wrote:

> I caught two different approaches to integrate Selenium to Rails:  
> [http://svn.viney.net.nz/things/rails/plugins/selenium\_testing/README](http://svn.viney.net.nz/things/rails/plugins/selenium_testing/README)  
> [SEO & Sökmotoroptimering - Så fungerar det - And then nothing](http://andthennothing.net/archives/2006/02/05/selenium-on-rails)
> 
> It seems that the first makes it easy to right the tests, and the second  
> makes it easy to run them. Am I correct?

You can use Selenium IDE[1] to write tests for Selenium on Rails, and I  
think that’s the best option. However, I will probably add pure Ruby  
test cases as well and will look at the other solutions out there, like  
Jonathan’s that you mention and Erik’s patch[2].

/Jonas

[1] [SEO & Sökmotoroptimering - Så fungerar det - And then nothing](http://andthennothing.net/archives/2006/02/08/selenium-ide)  
[2]  
[Selenium on Rails, Reloaded: Client-Side Tests in Ruby | Random Hacks](http://www.randomhacks.net/articles/2006/02/15/selenium-on-rails-reloaded)

---

<div class="post-metadata">

**Author:** ![lstrecv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e68b1a/32.png) [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Post date:** [February 17, 2006, 12:07am UTC](https://www.ruby-forum.com/t/how-to-use-selenium-from-rails/53905/3 "2006-02-17T00:07:02Z")

</div>

It would be great to see some work on combining my approach with  
selenium-on-rails. I think it would be possible to have the best of both  
worlds, but it may require a bit of creative thinking :).

-Jonathan.

> You can use Selenium IDE[1] to write tests for Selenium on Rails, and I  
> think that’s the best option. However, I will probably add pure Ruby  
> test cases as well and will look at the other solutions out there, like  
> Jonathan’s that you mention and Erik’s patch[2].
> 
> /Jonas

---

<div class="post-metadata">

**Author:** ![lstrecv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e68b1a/32.png) [@lstrecv](https://www.ruby-forum.com/u/lstrecv)\
**Post date:** [February 17, 2006, 6:57am UTC](https://www.ruby-forum.com/t/how-to-use-selenium-from-rails/53905/4 "2006-02-17T06:57:08Z")

</div>

I’ve done some more work on this today, so you should be seeing a new  
version of the plugin out pretty soon which tries to get the best of  
both worlds.

-Jonny.

Jonathan V. wrote:

> It would be great to see some work on combining my approach with  
> selenium-on-rails. I think it would be possible to have the best of both  
> worlds, but it may require a bit of creative thinking :).
> 
> -Jonathan.
> 
> > You can use Selenium IDE[1] to write tests for Selenium on Rails, and I  
> > think that’s the best option. However, I will probably add pure Ruby  
> > test cases as well and will look at the other solutions out there, like  
> > Jonathan’s that you mention and Erik’s patch[2].
> > 
> > /Jonas
