Commit.
This commit is contained in:
parent
2e1e31fc9a
commit
5bebac85fb
|
@ -171,8 +171,8 @@ class Browser(DriverChoose):
|
|||
for i in option_arguments:
|
||||
options.add_argument(i)
|
||||
# Set headless mode.
|
||||
if self.platform == 'Linux' or headless:
|
||||
options.add_argument('--headless')
|
||||
# if self.platform == 'Linux' or headless:
|
||||
# options.add_argument('--headless')
|
||||
# Set no-sandbox mode.
|
||||
if self.platform == 'Linux':
|
||||
display = pyvirtualdisplay.Display(visible=False, size=(1920, 1080))
|
||||
|
|
Loading…
Reference in New Issue