File tree Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 11browser : chrome
2- implicit_wait : 10
2+ implicit_wait : 20
33browser_horizontal_size : 1200
44browser_vertical_size : 800
55headless : 0
Original file line number Diff line number Diff line change @@ -29,7 +29,17 @@ def __init__(self) -> None:
2929 self .driver .set_window_size (int (Var .glob ("browser_horizontal_size" )),
3030 int (Var .glob ("browser_vertical_size" )))
3131 elif browser == "firefox" :
32+ # options = webdriver.FirefoxOptions()
33+ # options.add_argument("--no-sandbox")
34+ # options.add_argument("--foreground")
35+ # options.add_argument('disable-infobars')
36+ # options.add_argument("--disable-extensions")
37+ # if str(Var.glob("headless")) == "1" or str(Var.env("headless")) == "1":
38+ # options.add_argument("--headless")
3239 self .driver = webdriver .Firefox (executable_path = GeckoDriverManager ().install ())
40+ # self.driver.implicitly_wait(int(Var.glob("implicit_wait")))
41+ # self.driver.set_window_size(int(Var.glob("browser_horizontal_size")),
42+ # int(Var.glob("browser_vertical_size")))
3343 elif browser == "safari" :
3444 self .driver = webdriver .Safari ()
3545 Store .push (self .driver )
Original file line number Diff line number Diff line change 1818# Parallel run
1919``` BROWSER=chrome pytest -s -v -n=2 ```
2020
21+ # snapshot run
22+ ``` snap=1 pytest ```
23+
24+ #
2125
You can’t perform that action at this time.
0 commit comments