Sha256: 6f7230a90b6dd560a44e19ae94aeb571d1a62e03c832681a9b535e8e5fe2d1ff

Contents?: true

Size: 957 Bytes

Versions: 64

Compression:

Stored size: 957 Bytes

Contents

Capybara.add_selector(:gridpanel) do
  xpath do |name|
    ".//div[contains(@id, '#{name}')][not(contains(@id, 'splitter'))] | "\
    ".//div[contains(@id, '#{name.camelize(:lower)}')]"\
    "[not(contains(@id, 'splitter'))]"
  end
end

Capybara.add_selector(:msg) do
  xpath do
    "//div[@id='msg-div']"
  end
end

Capybara.add_selector(:body) do
  xpath do
    ".//div[@data-ref='body']"
  end
end

Capybara.add_selector(:input) do
  xpath do |name|
    "//input[@name='#{name}']"
  end
end

Capybara.add_selector(:status) do
  xpath do |name|
    "//div[contains(@id, 'statusbar')]//div[text()='#{name}']"
  end
end

Capybara.add_selector(:btn) do
  xpath do |name|
    ".//span[text()='#{name}']"
  end
end

Capybara.add_selector(:refresh) do
  xpath do
    ".//div[contains(@class, 'x-tool-refresh')]"
  end
end

Capybara.add_selector(:gridcolumn) do
  xpath do |name|
    ".//span[contains(@class, 'x-column-header')][text()='#{name}']/.."
  end
end

Version data entries

64 entries across 64 versions & 1 rubygems

Version Path
marty-14.3.0 spec/support/custom_selectors.rb
marty-14.0.0 spec/support/custom_selectors.rb
marty-13.0.2 spec/support/custom_selectors.rb
marty-11.0.0 spec/support/custom_selectors.rb
marty-10.0.3 spec/support/custom_selectors.rb
marty-10.0.2 spec/support/custom_selectors.rb
marty-10.0.0 spec/support/custom_selectors.rb
marty-9.5.1 spec/support/custom_selectors.rb
marty-9.5.0 spec/support/custom_selectors.rb
marty-9.3.3 spec/support/custom_selectors.rb
marty-9.3.2 spec/support/custom_selectors.rb
marty-9.3.0 spec/support/custom_selectors.rb
marty-8.5.0 spec/support/custom_selectors.rb
marty-8.4.1 spec/support/custom_selectors.rb
marty-8.3.1 spec/support/custom_selectors.rb
marty-8.2.0 spec/support/custom_selectors.rb
marty-8.0.0 spec/support/custom_selectors.rb
marty-6.1.0 spec/support/custom_selectors.rb
marty-5.2.0 spec/support/custom_selectors.rb
marty-5.1.4 spec/support/custom_selectors.rb