Resize on the fly not working
ingolfured opened this issue · comments
I'm trying to resize my browser on the fly the following way
session = Capybara::Session.new(:poltergeist)
session.driver.browser.resize(320, 568)
However, it doesn't resize. It just stays [1024,768]
. Is there any way to resize the browser by calling a method on thesession
object?
Ideally you should be calling session.current_window.resize_to(320, 568)
rather than using driver specific methods. However what you have called should work - what are you basing the statement "It just stays [1024,768]" on?
Closing due to lack of response - we can reopen if more info is provided.