Sha256: a2711a3f648f946e8a9feaec8efe5719f6c80450e98519f1fb62cb7a5600774d
Contents?: true
Size: 432 Bytes
Versions: 2
Compression:
Stored size: 432 Bytes
Contents
class BeVisible def matches?(jquery_object) @model = jquery_object.jquery_matcher return jquery_object.selenium.execute_js( "$('#{@model}').is(':visible')") == "true" end def description "be visible" end def failure_message " expected to be visible, but was not." end def negative_failure_message " expected not to be visible, but was." end end def be_visible BeVisible.new end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
caifara-rSquery-0.1.1 | lib/rSquery/rspec_matchers.rb |
caifara-rSquery-0.1.2 | lib/rSquery/rspec_matchers.rb |