This commit is contained in:
zhaoyafan 2023-03-14 18:16:56 +08:00
parent 0cce2559fc
commit fbb70719c4
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,7 @@ class Browser(DriverChoose):
# Set no-sandbox mode.
if self.platform == 'Linux':
options.add_argument('--no-sandbox')
options.add_argument('--disable-gpu')
# Set language of browser, default is zh-CN.
if lang:
options.add_argument('--lang=%s' % (lang or 'zh-CN'))