Sha256: 0d1a7cda3323af00cf56b42ce70bb4b96ff8297e2819b6268d9692a1e87e3ffb

Contents?: true

Size: 231 Bytes

Versions: 40

Compression:

Stored size: 231 Bytes

Contents

module CapybaraCommon
  def js_click(sel)
    page.execute_script("$('#{sel}').click()")
  end

  def include_hidden_fields
    Capybara.ignore_hidden_elements = false
    yield
    Capybara.ignore_hidden_elements = true
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
virgo-0.3.17 spec/support/capybara_common.rb
virgo-0.3.16 spec/support/capybara_common.rb
virgo-0.3.15 spec/support/capybara_common.rb
virgo-0.3.14 spec/support/capybara_common.rb
virgo-0.3.13 spec/support/capybara_common.rb
virgo-0.3.12 spec/support/capybara_common.rb
virgo-0.3.11 spec/support/capybara_common.rb
virgo-0.3.10 spec/support/capybara_common.rb
virgo-0.3.9 spec/support/capybara_common.rb
virgo-0.3.8 spec/support/capybara_common.rb
virgo-0.3.7 spec/support/capybara_common.rb
virgo-0.3.6 spec/support/capybara_common.rb
virgo-0.3.4 spec/support/capybara_common.rb
virgo-0.3.3 spec/support/capybara_common.rb
virgo-0.3.2 spec/support/capybara_common.rb
virgo-0.3.1 spec/support/capybara_common.rb
virgo-0.3 spec/support/capybara_common.rb
virgo-0.2.9 spec/support/capybara_common.rb
virgo-0.2.8 spec/support/capybara_common.rb
virgo-0.2.7 spec/support/capybara_common.rb