Open sureshpathipati opened 5 years ago
What do you think maximize
means in a fully headless browser?
maximize
generally expands the browser to the resolution available. But I don't know if it works same for webkit.
Some how the following snippet worked for me
Before do |scenario|
#<code>
Capybara.page.current_window.resize_to(1600, 1600)
end
Currently I am unable to maximize the window. I tried maximum functions(resize_window, Capybara.current_window.maximize, execute_script("window.resizeTo(1024, screen.height)")) to maximize the window with no luck.
Gem version 'capybara-webkit', '~> 1.15.1'