Commit.
This commit is contained in:
parent
0cce2559fc
commit
fbb70719c4
|
@ -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'))
|
||||
|
|
Loading…
Reference in New Issue