Commit.
This commit is contained in:
parent
9c6c5e877d
commit
d0720b6ca5
|
@ -8,7 +8,6 @@ from selenium.webdriver.common.action_chains import ActionChains
|
|||
from selenium.webdriver.support import expected_conditions as EC
|
||||
from selenium.webdriver.support.wait import WebDriverWait
|
||||
from selenium.common.exceptions import *
|
||||
# import pyvirtualdisplay
|
||||
import tempfile
|
||||
import platform
|
||||
import random
|
||||
|
@ -175,8 +174,6 @@ class Browser(DriverChoose):
|
|||
options.add_argument('--headless')
|
||||
# Set no-sandbox mode.
|
||||
if self.platform == 'Linux':
|
||||
# display = pyvirtualdisplay.Display(visible=False, size=(1920, 1080))
|
||||
# display.start()
|
||||
options.add_argument('--no-sandbox')
|
||||
options.add_argument('--disable-dev-shm-usage')
|
||||
options.add_argument('--disable-gpu')
|
||||
|
|
|
@ -22,5 +22,6 @@ class TestSigninSite(unittest.TestCase):
|
|||
self.driver.wait(3)
|
||||
self.driver.screenshot_for_report()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
Loading…
Reference in New Issue