I have only used the IDE and then ported that to core for testing in
IE.
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
on:
view code contains (which updates the holidays[] field through a
partial render in the ical_events action):
<%= observe_field :holiday_selected, :frequency=>0.5,
:update=>''ical_list'',
:url=>
{:controller=>''event'',
:action=>''ical_events'', :only_path=>false},
:with=>"''holiday='' +
encodeURIComponent(value)" %>
test code contains:
<tr>
<td>select</td>
<td>holiday_selected</td>
<td>label=Australian Holidays</td>
</tr>
<tr>
<td>waitForCondition</td>
<td>var value = selenium.getText("//
select[@name=''holidays[]'']"); value.match(/Boxing/)</td>
<td>5000</td>
</tr>
On Jul 12, 10:52 am, Will Gant
<williamwg...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org>
wrote:> 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?
>
> Thanks,
> Will
>
> ---------------------------------
> TV dinner still cooling?
> Check out "Tonight''s Picks" on Yahoo! TV.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---