Sha256: 24268f25b0e75b6088d32231cf24ed918f9476e783b76026fa7a3fb635d56676
Contents?: true
Size: 464 Bytes
Versions: 6
Compression:
Stored size: 464 Bytes
Contents
class AlertsPage < UnderOs::Page def initialize find('#buttons button').each_with_index do |button, index| button.on :tap do case index when 1 then Alert.new(title: "Error", message: button.text) when 2 then Alert.new(message: button.text, button: "Doh...") when 3 then Alert.new(message: button.text, buttons: ["Option 1", "Option 2"]) else Alert.new(button.text) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems