From 0882210a3de0c5382b053b1188c8423581e3538f Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 19 Sep 2022 13:40:21 -0500 Subject: [PATCH] :bug: Added window size for headless mode. Fixes Selenium Exception. --- tipranks/login.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tipranks/login.py b/tipranks/login.py index fa9fe83..301805f 100644 --- a/tipranks/login.py +++ b/tipranks/login.py @@ -13,6 +13,7 @@ class TipRanksLogin: def __init__(self, email, password): options = webdriver.ChromeOptions() + options.add_argument("window-size=1920,1080") options.add_argument("--headless") options.add_experimental_option("excludeSwitches", ["enable-automation", "enable-logging"]) options.add_experimental_option("useAutomationExtension", False)