diff --git a/Data/GlobalData/global_data.yml b/Data/GlobalData/global_data.yml index 61c9040..0eab175 100644 --- a/Data/GlobalData/global_data.yml +++ b/Data/GlobalData/global_data.yml @@ -1,5 +1,5 @@ browser: chrome -implicit_wait: 10 +implicit_wait: 20 browser_horizontal_size: 1200 browser_vertical_size: 800 headless: 0 diff --git a/Library/Sepy_framework.png b/Library/Sepy_framework.png new file mode 100644 index 0000000..c32c2dc Binary files /dev/null and b/Library/Sepy_framework.png differ diff --git a/Library/driver.py b/Library/driver.py index cae83f5..aa9dd93 100644 --- a/Library/driver.py +++ b/Library/driver.py @@ -29,7 +29,17 @@ def __init__(self) -> None: self.driver.set_window_size(int(Var.glob("browser_horizontal_size")), int(Var.glob("browser_vertical_size"))) elif browser == "firefox": + # options = webdriver.FirefoxOptions() + # options.add_argument("--no-sandbox") + # options.add_argument("--foreground") + # options.add_argument('disable-infobars') + # options.add_argument("--disable-extensions") + # if str(Var.glob("headless")) == "1" or str(Var.env("headless")) == "1": + # options.add_argument("--headless") self.driver = webdriver.Firefox(executable_path=GeckoDriverManager().install()) + # self.driver.implicitly_wait(int(Var.glob("implicit_wait"))) + # self.driver.set_window_size(int(Var.glob("browser_horizontal_size")), + # int(Var.glob("browser_vertical_size"))) elif browser == "safari": self.driver = webdriver.Safari() Store.push(self.driver) diff --git a/README.md b/README.md index 76e1085..143f64c 100644 --- a/README.md +++ b/README.md @@ -18,4 +18,8 @@ pytest # Parallel run ```BROWSER=chrome pytest -s -v -n=2``` +# snapshot run +```snap=1 pytest``` + +#