capybara - CSS Find not working with Poltergeist -
the following html source:
<div id="users_filter" class="btn-group no-margin pull-right nested-pull-right open"> <a class="btn dropdown-toggle attach-left btn-small btn-primary" data-toggle="click-dropdown" href="#"></a> <ul class="dropdown-menu dropdown-filter"></ul> </div>
i have following step definition:
when /i click "([^\"]*)"/ |arg1| find(:css, arg1).trigger('click'); end
and in feature file do:
then click "#users_filter .dropdown-toggle"
but click event not triggered.
i use capybara & poltergeist driver.
can please me understand i'm going wrong? ramya
Comments
Post a Comment