Skip to content

Commit f75d968

Browse files
committed
Reorganizing settings.py / Remove unused timeout variable
1 parent 2f5ca62 commit f75d968

File tree

1 file changed

+15
-25
lines changed

1 file changed

+15
-25
lines changed

seleniumbase/config/settings.py

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,16 @@
99

1010
# #####>>>>>----- REQUIRED/IMPORTANT SETTINGS -----<<<<<#####
1111

12-
# Default seconds to wait for page elements to appear before performing actions
13-
TINY_TIMEOUT = 0.1
12+
# Default maximum time (in seconds) to wait for page elements to appear.
13+
# Different methods/actions in base_case.py use different timeouts.
14+
# If the element to be acted on does not appear in time, the test fails.
1415
MINI_TIMEOUT = 2
1516
SMALL_TIMEOUT = 6
1617
LARGE_TIMEOUT = 10
1718
EXTREME_TIMEOUT = 30
1819

19-
# Default time to wait after each browser action performed during Demo Mode
20-
# Use Demo Mode when you want others to see what your automation is doing
21-
# Usage: --demo_mode when run from the command line when using --with-selenium
22-
# This value can be overwritten on the command line by using --demo_sleep=FLOAT
23-
DEFAULT_DEMO_MODE_TIMEOUT = 1.0
24-
25-
# Number of times to repeat the highlight animation. (Seen during Demo Mode)
26-
# Each loop is about 0.18 seconds.
27-
# This value can be overwritten on the command line by using --highlights=TIMES
28-
HIGHLIGHTS = 4
29-
3020
# If True, existing logs from past test runs will be saved and take up space.
3121
# If False, only the logs from the most recent test run will be saved locally.
32-
# This has no effect on Jenkins/S3/MySQL, which may still be saving test logs.
3322
ARCHIVE_EXISTING_LOGS = False
3423

3524
# If True, existing downloads from past runs will be saved and take up space.
@@ -44,38 +33,39 @@
4433
PAGE_SOURCE_NAME = "page_source.html"
4534

4635
# Default names for folders and files saved when reports are turned on.
47-
# Usage: "--report" (Also requires: "--with-testing_base")
48-
# These settings are also used with MasterQA
36+
# Usage: "--report" and "--with-testing_base" together. (NOSETESTS only)
4937
LATEST_REPORT_DIR = "latest_report"
5038
REPORT_ARCHIVE_DIR = "archived_reports"
5139
HTML_REPORT = "report.html"
5240
RESULTS_TABLE = "results_table.csv"
5341

5442
'''
5543
This adds wait_for_ready_state_complete() after various browser actions.
56-
By default, Selenium waits for the 'interactive' state before continuing.
5744
Setting this to True may improve reliability at the cost of speed.
58-
WARNING: Some websites are in a perpetual "interactive" state due to
59-
dynamic content that never fully finishes loading (Use "False" there).
6045
'''
6146
# Called after self.open(url) or self.open_url(url), NOT self.driver.open(url)
6247
WAIT_FOR_RSC_ON_PAGE_LOADS = True
6348
# Called after self.click(selector), NOT element.click()
6449
WAIT_FOR_RSC_ON_CLICKS = True
6550

6651
'''
67-
This adds wait_for_angularjs() after wait_for_ready_state_complete()
68-
after various browser actions. Setting this to True may improve reliability
69-
of AngularJs applications at the cost of speed.
70-
NOTE: This requires WAIT_FOR_RSC_ON_PAGE_LOADS and/or WAIT_FOR_RSC_ON_CLICKS
71-
to be True since it's part of wait_for_ready_state_complete().
52+
This adds wait_for_angularjs() after various browser actions.
53+
(Requires WAIT_FOR_RSC_ON_PAGE_LOADS and WAIT_FOR_RSC_ON_CLICKS to also be on.)
7254
'''
73-
# Called after each wait_for_ready_state_complete()
7455
WAIT_FOR_ANGULARJS = True
7556

7657
# Option to start Chrome in full screen mode by default
7758
START_CHROME_IN_FULL_SCREEN_MODE = False
7859

60+
# Default time to wait after each browser action performed during Demo Mode.
61+
# Use Demo Mode when you want others to see what your automation is doing.
62+
# Usage: "--demo_mode". (Can be overwritten by using "--demo_sleep=TIME".)
63+
DEFAULT_DEMO_MODE_TIMEOUT = 1.0
64+
65+
# Number of times to repeat the demo_mode highlight animation.
66+
# Each loop is about 0.18 seconds. (Override by using "--highlights=TIMES".)
67+
HIGHLIGHTS = 4
68+
7969

8070
# #####>>>>>----- MasterQA SETTINGS -----<<<<<#####
8171
# ##### (Used when importing MasterQA as the parent class)

0 commit comments

Comments
 (0)