|
| 1 | +""" |
| 2 | +To override default settings stored in seleniumbase/config/settings.py, |
| 3 | +change the values here and add "--settings=custom_settings.py" when running. |
| 4 | +""" |
| 5 | + |
| 6 | +# Default timeout values for waiting for page elements to appear. |
| 7 | +MINI_TIMEOUT = 2 |
| 8 | +SMALL_TIMEOUT = 6 |
| 9 | +LARGE_TIMEOUT = 10 |
| 10 | +EXTREME_TIMEOUT = 30 |
| 11 | + |
| 12 | +# If False, only logs from the most recent test run will be saved. |
| 13 | +ARCHIVE_EXISTING_LOGS = False |
| 14 | +ARCHIVE_EXISTING_DOWNLOADS = False |
| 15 | + |
| 16 | +# Waiting for Document.readyState to be "Complete" after browser actions. |
| 17 | +WAIT_FOR_RSC_ON_PAGE_LOADS = True |
| 18 | +WAIT_FOR_RSC_ON_CLICKS = True |
| 19 | +WAIT_FOR_ANGULARJS = True |
| 20 | + |
| 21 | +# Changing the default behavior of Demo Mode. Activate with: --demo_mode |
| 22 | +DEFAULT_DEMO_MODE_TIMEOUT = 0.5 |
| 23 | +HIGHLIGHTS = 4 |
| 24 | +DEFAULT_MESSAGE_DURATION = 2.55 |
| 25 | + |
| 26 | +# Disabling the Content Security Policy of the browser by default. |
| 27 | +DISABLE_CSP_ON_FIREFOX = True |
| 28 | +DISABLE_CSP_ON_CHROME = False |
| 29 | + |
| 30 | +# If True and --proxy=IP_ADDRESS:PORT is invalid, then error immediately. |
| 31 | +RAISE_INVALID_PROXY_STRING_EXCEPTION = True |
| 32 | + |
| 33 | +# Changing the default behavior of MasterQA Mode. |
| 34 | +MASTERQA_DEFAULT_VALIDATION_MESSAGE = "Does the page look good?" |
| 35 | +MASTERQA_WAIT_TIME_BEFORE_VERIFY = 0.5 |
| 36 | +MASTERQA_START_IN_FULL_SCREEN_MODE = False |
| 37 | +MASTERQA_MAX_IDLE_TIME_BEFORE_QUIT = 600 |
| 38 | + |
| 39 | +# Google Authenticator |
| 40 | +# (For 2-factor authentication using a time-based one-time password algorithm) |
| 41 | +# (See https://github.com/pyotp/pyotp and https://pypi.org/project/pyotp/ ) |
| 42 | +# (Also works with Authy and other compatible apps.) |
| 43 | +TOTP_KEY = "base32secretABCD" |
| 44 | + |
| 45 | +# MySQL DB Credentials |
| 46 | +# (For saving data from tests to a MySQL DB) |
| 47 | +# Add "--with-db_reporting" to save test data to a MySQL DB during test runs |
| 48 | +DB_HOST = "127.0.0.1" |
| 49 | +DB_USERNAME = "root" |
| 50 | +DB_PASSWORD = "test" |
| 51 | +DB_SCHEMA = "test_db" |
| 52 | + |
| 53 | +# Amazon S3 Bucket Credentials |
| 54 | +# (For saving screenshots and other log files from tests) |
| 55 | +# (Bucket names are unique across all existing bucket names in Amazon S3) |
| 56 | +# Add "--with-s3_logging" to save test results to S3 |
| 57 | +S3_LOG_BUCKET = "[S3 BUCKET NAME]" |
| 58 | +S3_BUCKET_URL = "https://s3.amazonaws.com/[S3 BUCKET NAME]/" |
| 59 | +S3_SELENIUM_ACCESS_KEY = "[S3 ACCESS KEY]" |
| 60 | +S3_SELENIUM_SECRET_KEY = "[S3 SECRET KEY]" |
| 61 | + |
| 62 | +# Encryption Settings |
| 63 | +# (Used for string/password obfuscation) |
| 64 | +# (You should reset the Encryption Key for every clone of SeleniumBase) |
| 65 | +ENCRYPTION_KEY = "Pg^.l!8UdJ+Y7dMIe&fl*%!p9@ej]/#tL~3E4%6?" |
| 66 | +# These tokens are added to the beginning and end of obfuscated passwords. |
| 67 | +# Helps identify which strings/passwords have been obfuscated. |
| 68 | +OBFUSCATION_START_TOKEN = "$^*ENCRYPT=" |
| 69 | +OBFUSCATION_END_TOKEN = "?&#$" |
| 70 | + |
| 71 | +# Default Email Credentials |
| 72 | +# (If tests send out emails, you can scan and verify them by using IMAP) |
| 73 | +# Here's a list of imap strings for known email providers: |
| 74 | +# - Gmail: imap.gmail.com |
| 75 | +# - Outlook/Live: imap-mail.outlook.com |
| 76 | +# - Yahoo Mail: imap.mail.yahoo.com |
| 77 | +# - AT&T: imap.mail.att.net |
| 78 | +# - Comcast: imap.comcast.net |
| 79 | +# - Verizon: incoming.verizon.net |
| 80 | +EMAIL_USERNAME = "[TEST ACCOUNT GMAIL USERNAME]@gmail.com" |
| 81 | +EMAIL_PASSWORD = "[TEST ACCOUNT GMAIL PASSWORD]" |
| 82 | +EMAIL_IMAP_STRING = "imap.gmail.com" |
| 83 | +EMAIL_IMAP_PORT = 993 |
0 commit comments