Module: Capybara::UI::Assertions

Defined in:
lib/capybara/ui/assertions.rb

Instance Method Summary collapse

Instance Method Details

#assert_not_visible(role, widget_name, *args) ⇒ Object


12
13
14
15
16
17
18
# File 'lib/capybara/ui/assertions.rb', line 12

def assert_not_visible(role, widget_name, *args)
  eventually do
    refute role.see?(widget_name, *args)

    true
  end
end

#assert_visible(role, widget_name, *args) ⇒ Object


4
5
6
7
8
9
10
# File 'lib/capybara/ui/assertions.rb', line 4

def assert_visible(role, widget_name, *args)
  eventually do
    assert role.see?(widget_name, *args)

    true
  end
end