Skip to content

Commit

Permalink
adding image file
Browse files Browse the repository at this point in the history
  • Loading branch information
nareshnavinash committed Jan 20, 2020
1 parent 3b029ee commit 5c81e71
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Data/GlobalData/global_data.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
browser: chrome
implicit_wait: 10
implicit_wait: 20
browser_horizontal_size: 1200
browser_vertical_size: 800
headless: 0
Binary file added Library/Sepy_framework.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions Library/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@ pytest
# Parallel run
```BROWSER=chrome pytest -s -v -n=2```

# snapshot run
```snap=1 pytest```

#

0 comments on commit 5c81e71

Please sign in to comment.