-
Notifications
You must be signed in to change notification settings - Fork 947
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
83 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
""" | ||
To override default settings stored in seleniumbase/config/settings.py, | ||
change the values here and add "--settings=custom_settings.py" when running. | ||
""" | ||
|
||
# Default timeout values for waiting for page elements to appear. | ||
MINI_TIMEOUT = 2 | ||
SMALL_TIMEOUT = 6 | ||
LARGE_TIMEOUT = 10 | ||
EXTREME_TIMEOUT = 30 | ||
|
||
# If False, only logs from the most recent test run will be saved. | ||
ARCHIVE_EXISTING_LOGS = False | ||
ARCHIVE_EXISTING_DOWNLOADS = False | ||
|
||
# Waiting for Document.readyState to be "Complete" after browser actions. | ||
WAIT_FOR_RSC_ON_PAGE_LOADS = True | ||
WAIT_FOR_RSC_ON_CLICKS = True | ||
WAIT_FOR_ANGULARJS = True | ||
|
||
# Changing the default behavior of Demo Mode. Activate with: --demo_mode | ||
DEFAULT_DEMO_MODE_TIMEOUT = 0.5 | ||
HIGHLIGHTS = 4 | ||
DEFAULT_MESSAGE_DURATION = 2.55 | ||
|
||
# Disabling the Content Security Policy of the browser by default. | ||
DISABLE_CSP_ON_FIREFOX = True | ||
DISABLE_CSP_ON_CHROME = False | ||
|
||
# If True and --proxy=IP_ADDRESS:PORT is invalid, then error immediately. | ||
RAISE_INVALID_PROXY_STRING_EXCEPTION = True | ||
|
||
# Changing the default behavior of MasterQA Mode. | ||
MASTERQA_DEFAULT_VALIDATION_MESSAGE = "Does the page look good?" | ||
MASTERQA_WAIT_TIME_BEFORE_VERIFY = 0.5 | ||
MASTERQA_START_IN_FULL_SCREEN_MODE = False | ||
MASTERQA_MAX_IDLE_TIME_BEFORE_QUIT = 600 | ||
|
||
# Google Authenticator | ||
# (For 2-factor authentication using a time-based one-time password algorithm) | ||
# (See https://github.com/pyotp/pyotp and https://pypi.org/project/pyotp/ ) | ||
# (Also works with Authy and other compatible apps.) | ||
TOTP_KEY = "base32secretABCD" | ||
|
||
# MySQL DB Credentials | ||
# (For saving data from tests to a MySQL DB) | ||
# Add "--with-db_reporting" to save test data to a MySQL DB during test runs | ||
DB_HOST = "127.0.0.1" | ||
DB_USERNAME = "root" | ||
DB_PASSWORD = "test" | ||
DB_SCHEMA = "test_db" | ||
|
||
# Amazon S3 Bucket Credentials | ||
# (For saving screenshots and other log files from tests) | ||
# (Bucket names are unique across all existing bucket names in Amazon S3) | ||
# Add "--with-s3_logging" to save test results to S3 | ||
S3_LOG_BUCKET = "[S3 BUCKET NAME]" | ||
S3_BUCKET_URL = "https://s3.amazonaws.com/[S3 BUCKET NAME]/" | ||
S3_SELENIUM_ACCESS_KEY = "[S3 ACCESS KEY]" | ||
S3_SELENIUM_SECRET_KEY = "[S3 SECRET KEY]" | ||
|
||
# Encryption Settings | ||
# (Used for string/password obfuscation) | ||
# (You should reset the Encryption Key for every clone of SeleniumBase) | ||
ENCRYPTION_KEY = "Pg^.l!8UdJ+Y7dMIe&fl*%!p9@ej]/#tL~3E4%6?" | ||
# These tokens are added to the beginning and end of obfuscated passwords. | ||
# Helps identify which strings/passwords have been obfuscated. | ||
OBFUSCATION_START_TOKEN = "$^*ENCRYPT=" | ||
OBFUSCATION_END_TOKEN = "?&#$" | ||
|
||
# Default Email Credentials | ||
# (If tests send out emails, you can scan and verify them by using IMAP) | ||
# Here's a list of imap strings for known email providers: | ||
# - Gmail: imap.gmail.com | ||
# - Outlook/Live: imap-mail.outlook.com | ||
# - Yahoo Mail: imap.mail.yahoo.com | ||
# - AT&T: imap.mail.att.net | ||
# - Comcast: imap.comcast.net | ||
# - Verizon: incoming.verizon.net | ||
EMAIL_USERNAME = "[TEST ACCOUNT GMAIL USERNAME]@gmail.com" | ||
EMAIL_PASSWORD = "[TEST ACCOUNT GMAIL PASSWORD]" | ||
EMAIL_IMAP_STRING = "imap.gmail.com" | ||
EMAIL_IMAP_PORT = 993 |