Sha256: 00be4fc2e07435aba84be6883cf720e9557ea7523270a59054330fbef45a0459
Contents?: true
Size: 277 Bytes
Versions: 3
Compression:
Stored size: 277 Bytes
Contents
module WebConditions # @method alert_present? # @return [Boolean true] -- if alert is present on page # @return [Boolean false] -- if alert is absent from page def alert_present? @driver.switch_to.alert true rescue false end end #module WebConditions
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
web-object-0.5 | lib/web-object/conditions/alert.rb |
web-object-0.4 | lib/web-object/conditions/alert.rb |
web-object-0.3 | lib/web-object/conditions/alert.rb |