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-2.6.4 spec/support/custom_selectors.rb
marty-2.6.3 spec/support/custom_selectors.rb
marty-2.6.2 spec/support/custom_selectors.rb
marty-2.6.1 spec/support/custom_selectors.rb
marty-2.6.0 spec/support/custom_selectors.rb
marty-2.5.9 spec/support/custom_selectors.rb
marty-2.5.8 spec/support/custom_selectors.rb
marty-2.5.7 spec/support/custom_selectors.rb
marty-2.5.6 spec/support/custom_selectors.rb
marty-2.5.5 spec/support/custom_selectors.rb
marty-2.5.4 spec/support/custom_selectors.rb
marty-2.5.2 spec/support/custom_selectors.rb
marty-2.5.1 spec/support/custom_selectors.rb
marty-2.5.0 spec/support/custom_selectors.rb
marty-2.4.9 spec/support/custom_selectors.rb
marty-2.4.8 spec/support/custom_selectors.rb
marty-2.4.7 spec/support/custom_selectors.rb
marty-2.4.6 spec/support/custom_selectors.rb
marty-2.4.5 spec/support/custom_selectors.rb
marty-2.4.4 spec/support/custom_selectors.rb