Sha256: 02ed75962b6bd3efe5fb79819fe84ab130376f4842d1d3d8e0da40242e0160c0
Contents?: true
Size: 576 Bytes
Versions: 3
Compression:
Stored size: 576 Bytes
Contents
class BaseIOSModal < TestCentricity::ScreenSection trait(:section_name) { 'Base iOS Modal' } trait(:section_locator) { { class: 'XCUIElementTypeAlert' } } # Base Modal UI elements alert :alert_modal, { class: 'XCUIElementTypeAlert' } def await_and_respond(action, timeout) if alert_modal.await(timeout) case action when :allow, :accept alert_modal.accept when :dont_allow, :dismiss alert_modal.dismiss else raise "#{action} is not a valid selector" end true else false end end end
Version data entries
3 entries across 3 versions & 1 rubygems