forked from ScreenPyHQ/screenpy_selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding the ability to adjust the duration of ActionChains
- Loading branch information
1 parent
5c602c8
commit a304db5
Showing
6 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"""Define settings for the StdOutAdapter.""" | ||
|
||
from pydantic_settings import SettingsConfigDict | ||
from screenpy.configuration import ScreenPySettings | ||
|
||
|
||
class ScreenPySeleniumSettings(ScreenPySettings): | ||
"""Settings for the ScreenPySelenium. | ||
To change these settings using environment variables, use the prefix | ||
``SCREENPY_SELENIUM_``, like so:: | ||
SCREENPY_SELENIUM_CHAIN_DURATION=50 # sets the indent char to 50 | ||
""" | ||
|
||
_tool_path = "screenpy_selenium" | ||
model_config = SettingsConfigDict(env_prefix="SCREENPY_SELENIUM_") | ||
|
||
CHAIN_DURATION: int = 10 | ||
"""Whether or not to use indentation in logging.""" | ||
|
||
|
||
# initialized instance | ||
settings = ScreenPySeleniumSettings() |