From 46919216693116577574ba04604fba9594b43dcb Mon Sep 17 00:00:00 2001 From: LanHao Date: Sun, 29 Aug 2021 21:16:44 +0800 Subject: [PATCH] Use options instead of chrome_options DeprecationWarning: use options instead of chrome_options Environment: ChromeDriver 92.0.4515.107 windows 10 x64, Python 3.8.9 Need to change "chrome_options" to "options" to run the Program --- leetcode_generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leetcode_generate.py b/leetcode_generate.py index 894ceeef..5156827a 100755 --- a/leetcode_generate.py +++ b/leetcode_generate.py @@ -206,7 +206,7 @@ def login(self): options.add_argument('--disable-gpu') executable_path = CONFIG.get('driverpath') driver = webdriver.Chrome( - chrome_options=options, executable_path=executable_path + options=options, executable_path=executable_path ) driver.get(LOGIN_URL)