Tbpgr Blog

Employee Experience Engineer tbpgr(てぃーびー) のブログ

Selenium | 画面のリサイズ

概要

画面のリサイズ

詳細

画面のリサイズについて

windowオブジェクトのresize_toメソッドを利用します。

driver = Selenium::WebDriver.for :firefox
width = 1000
height = 500
driver.manage.window.resize_to(width, height)