ruby on rails 4 - Resizing the window in Capybara with rack_test -
i'm using rack_test
driver capybara , i'm trying resize window.
the best example find on this gist, resize
method not seem work rack_test
> capybara.current_driver => :rack_test > page.driver.resize(200, 200) nomethoderror: undefined method `resize' #<capybara::racktest::driver:0x007fe4eb83bc60> (pry):22:in `block (2 levels) in <top (required)>'
i've tried various other combinations i've seen online no luck. there easier way resize browser window?
thanks!
the rack_test driver has no concept of windows or page size. strictly html parser, no layout , minimal css processing (basically inline display: none checking). if need window resizing need switch 1 of real browser drivers.
Comments
Post a Comment