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.2.6 spec/support/capybara_common.rb
virgo-0.2.5 spec/support/capybara_common.rb
virgo-0.2.4 spec/support/capybara_common.rb
virgo-0.2.2 spec/support/capybara_common.rb
virgo-0.2.1 spec/support/capybara_common.rb
virgo-0.2 spec/support/capybara_common.rb
virgo-0.1.16 spec/support/capybara_common.rb
virgo-0.1.15 spec/support/capybara_common.rb
virgo-0.1.14 spec/support/capybara_common.rb
virgo-0.1.13 spec/support/capybara_common.rb
virgo-0.1.12 spec/support/capybara_common.rb
virgo-0.1.11 spec/support/capybara_common.rb
virgo-0.1.10 spec/support/capybara_common.rb
virgo-0.1.8 spec/support/capybara_common.rb
virgo-0.1.7 spec/support/capybara_common.rb
virgo-0.1.6 spec/support/capybara_common.rb
virgo-0.1.5 spec/support/capybara_common.rb
virgo-0.1.4 spec/support/capybara_common.rb
virgo-0.1.3 spec/support/capybara_common.rb
virgo-0.1.2 spec/support/capybara_common.rb