Fix implementation of resize_window for Selenium

This commit is contained in:
Stan Hu 2017-08-09 22:32:30 -07:00
parent 09baadca34
commit 50701b58bf

View file

@ -12,6 +12,6 @@ module MobileHelpers
end
def resize_window(width, height)
page.driver.resize_window width, height
Capybara.current_session.current_window.resize_to(width, height)
end
end