From: Ben Lovell Date: 2009-07-01T22:26:54+09:00 Subject: Re: Using selenium in a ruby program --001636c5ac7a33e686046da4e083 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Wed, Jul 1, 2009 at 2:19 PM, Kga Agk wrote: > Ben Lovell wrote: > > On Wed, Jul 1, 2009 at 12:43 PM, Kga Agk 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. --001636c5ac7a33e686046da4e083--