Skip to content

Commit

Permalink
🐛 Added window size for headless mode. Fixes Selenium Exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
visuxls committed Sep 19, 2022
1 parent ff1f664 commit 0882210
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tipranks/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0882210

Please sign in to comment.