Forum: Ruby on Rails Selenium and Rails

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
624b83b6eb01ed19fe7b397e4e198f00?d=identicon&s=25 Will Gant (Guest)
on 2007-07-12 16:53
(Received via mailing list)
Hello all,
Has anyone had any luck writing and using Selenium tests in the rails
environment. If so, what pitfalls have you run into? Have you got any
tips or tricks?


TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
F0d09ef2a279cae4ac312164aa1af6d3?d=identicon&s=25 ian (Guest)
on 2007-07-12 17:01
(Received via mailing list)
I have only used the IDE and then ported that to core for testing in

I ran into issues with AJAX more than anything else. So, I have an
AJAX call that dynamically updates a list. There is a trick to use
waitforcondition where you can insert javascript. In this example, the
country lists is seletected and then updates the holidays. Then the
script will wait for the word "Boxing" to be populated before going

view code contains (which updates the holidays[] field through a
partial render in the ical_events action):
           <%= observe_field :holiday_selected, :frequency=>0.5,
{:controller=>'event', :action=>'ical_events', :only_path=>false},
           :with=>"'holiday=' + encodeURIComponent(value)" %>

test code contains:
  <td>label=Australian Holidays</td>
  <td>var value = selenium.getText("//
This topic is locked and can not be replied to.