2016-11-14 13:56:52 -05:00
|
|
|
module MobileHelpers
|
2017-04-19 15:10:16 -04:00
|
|
|
def resize_screen_xs
|
|
|
|
resize_window(767, 768)
|
|
|
|
end
|
|
|
|
|
2016-11-14 13:56:52 -05:00
|
|
|
def resize_screen_sm
|
|
|
|
resize_window(900, 768)
|
|
|
|
end
|
|
|
|
|
|
|
|
def restore_window_size
|
|
|
|
resize_window(1366, 768)
|
|
|
|
end
|
|
|
|
|
|
|
|
def resize_window(width, height)
|
|
|
|
page.driver.resize_window width, height
|
|
|
|
end
|
|
|
|
end
|