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 1
1
browser : chrome
2
- implicit_wait : 10
2
+ implicit_wait : 20
3
3
browser_horizontal_size : 1200
4
4
browser_vertical_size : 800
5
5
headless : 0
Original file line number Diff line number Diff line change @@ -29,7 +29,17 @@ def __init__(self) -> None:
29
29
self .driver .set_window_size (int (Var .glob ("browser_horizontal_size" )),
30
30
int (Var .glob ("browser_vertical_size" )))
31
31
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")
32
39
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")))
33
43
elif browser == "safari" :
34
44
self .driver = webdriver .Safari ()
35
45
Store .push (self .driver )
Original file line number Diff line number Diff line change 18
18
# Parallel run
19
19
``` BROWSER=chrome pytest -s -v -n=2 ```
20
20
21
+ # snapshot run
22
+ ``` snap=1 pytest ```
23
+
24
+ #
21
25
You can’t perform that action at this time.
0 commit comments