How to set window size in Selenium Chrome Python
A bit unclear why and exactly where you are stuck. Possibly the extra . as in height = {}px. is creating the chaos. Perhaps along with -headless argument I am able to set/retrieve the Chrome browser Window Size as follows: Code Block: from selenium import webdriver from selenium.webdriver.chrome.options import Options options = Options() options.add_argument(“–headless”) options.add_argument(“window-size=1400,600”) … Read more