I’m trying to maximize the window but with no success
require “selenium-webdriver”
driver = Selenium::WebDriver.for :chrome
driver.navigate.to “http://www.google.es”
driver.window_maximize
I’m trying to maximize the window but with no success
require “selenium-webdriver”
driver = Selenium::WebDriver.for :chrome
driver.navigate.to “http://www.google.es”
driver.window_maximize
driver.execute_script(“window.resizeTo(screen.width,screen.height)”)
require “selenium-webdriver”
$driver = Selenium::WebDriver.for :chrome
$driver.manage.window.maximize
Above worked for me with selenium webdriver ver 2.53.0
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs