Skip to content

Commit

Permalink
get_firefox_options() defaults to temporary profile | Updated setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
st1vms committed Oct 29, 2023
1 parent 77b0d16 commit 2388aba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions selgym/gym.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ def cleanup_resources():


def get_firefox_options(
firefox_profile: str = "", headless: bool = False, private_mode: bool = False
firefox_profile: str = None, headless: bool = False, private_mode: bool = False
) -> selenium.webdriver.firefox.options.Options:
"""Returns chrome options instance with given configuration set"""
options = FirefoxOptions()
options.profile = (
get_default_firefox_profile() if not firefox_profile else firefox_profile
)

if firefox_profile and isinstance(firefox_profile, str):
options.profile = firefox_profile

if headless:
monitor = screeninfo.get_monitors()[0]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name="selgym",
version="0.1.2",
version="0.1.3",
author="st1vms",
author_email="[email protected]",
description=__DESCRIPTION,
Expand Down

0 comments on commit 2388aba

Please sign in to comment.