lib/briar/email.rb in briar-0.1.3.b6 vs lib/briar/email.rb in briar-0.1.3.b7
- old
+ new
@@ -151,20 +151,20 @@
msg = "waited for '#{timeout}' seconds but did not see cancel button"
wait_for(:timeout => timeout,
:retry_frequency => BRIAR_WAIT_RETRY_FREQ,
:post_timeout => BRIAR_WAIT_STEP_PAUSE,
:timeout_message => msg) do
- uia_element_exists?(:view, marked: 'Cancel')
+ uia_element_exists?(:view, {:marked => 'Cancel'})
end
uia_tap_mark('Cancel')
msg = "waited for '#{timeout}' seconds but did not see dismiss email action sheet"
wait_for(:timeout => timeout,
:retry_frequency => BRIAR_WAIT_RETRY_FREQ,
:post_timeout => BRIAR_WAIT_STEP_PAUSE,
:timeout_message => msg) do
- uia_element_exists?(:view, marked: 'Delete Draft')
+ uia_element_exists?(:view, {:marked => 'Delete Draft'})
end
uia_tap_mark('Delete Draft')
wait_for_view_to_disappear 'compose email'
@@ -178,10 +178,10 @@
if uia_not_available?
screenshot_and_raise 'UIA needs to be available'
end
- res = uia_query(:view, marked: 'To:').first
+ res = uia_query(:view, {:marked => 'To:'}).first
rect = res['rect']
point = {:x => rect['x'] + (2 * rect['width']),
:y => rect['y']}
uia_touch_with_options(point)
uia_wait_for_keyboard if opts[:wait_for_keyboard]