Archive

Posts Tagged ‘chrome’

Splinter patch: open the Chrome browser window in a maximized way

Problem
With Splinter, I would like to open the Chrome browser window in a maximized way, i.e. it should fill the whole screen.

Solution
As a temporary solution, I patched my /usr/local/lib/python2.7/dist-packages/splinter/driver/webdriver/chrome.py file by adding the following line:

options.add_argument("--start-maximized")

I also reported this idea to the authors of Splinter here.

Categories: python Tags: , , ,
Design a site like this with WordPress.com
Get started