On Wed, Jul 1, 2009 at 2:19 PM, Kga Agk <lord_kga / yahoo.no> wrote:

> Ben Lovell wrote:
> > On Wed, Jul 1, 2009 at 12:43 PM, Kga Agk <lord_kga / yahoo.no> wrote:
> >
> >>    require 'rubygems'
> >>    require "selenium/client"
> >>          :url => "http://www.google.com",
> >>        @browser.type "q", "Selenium seleniumhq.org"
> >> --
> >> Posted via http://www.ruby-forum.com/.
> >>
> >>
> > You might want to take a look at Webrat if you haven't already [0] You
> > can
> > fairly easily switch between a simulated browser (if you don't need to
> > test
> > javascript) or run in automated mode i.e. selenium.
> >
> > [0] http://gitrdoc.com/brynary/webrat/tree/master/
> >
> > Rgds,
> > Ben
>
> I can take a look, but I have to test some sites using javascript. I
> have to test a bunch of server side programs, and the way to start them
> is to click on stuff that are generated by javascript (or somthing like
> that).
> --
> Posted via http://www.ruby-forum.com/.
>
>
That's fine too. As I said earlier it can run selenium tests/server. The key
difference being this abstracts that away and manages the lifecycle of the
selenium server for you.