Skip to content

Commit 226dadd

Browse files
committed
Spell "JavaScript" like this
1 parent 0270cc7 commit 226dadd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -754,15 +754,15 @@ def __escape_quotes_if_needed(self, string):
754754
return js_utils.escape_quotes_if_needed(string)
755755

756756
def create_tour(self, name=None, theme=None):
757-
""" Creates a tour for a website. By default, the Shepherd Javascript
757+
""" Creates a tour for a website. By default, the Shepherd JavaScript
758758
Library is used with the Shepherd "Light" / "Arrows" theme.
759759
@Params
760760
name - If creating multiple tours at the same time,
761761
use this to select the tour you wish to add steps to.
762762
theme - Sets the default theme for the tour.
763763
Choose from "light"/"arrows", "dark", "default", "square",
764764
and "square-dark". ("arrows" is used if None is selected.)
765-
Alternatively, you may use a different Javascript Library
765+
Alternatively, you may use a different JavaScript Library
766766
as the theme. Those include "IntroJS", "Bootstrap", and
767767
"Hopscotch".
768768
"""
@@ -1169,7 +1169,7 @@ def export_tour(self, name=None, filename="my_tour.js"):
11691169
@Params
11701170
name - If creating multiple tours at the same time,
11711171
use this to select the tour you wish to add steps to.
1172-
filename - The name of the javascript file that you wish to
1172+
filename - The name of the JavaScript file that you wish to
11731173
save the tour to. """
11741174
tour_helper.export_tour(self._tour_steps, name=name, filename=filename)
11751175

@@ -1515,7 +1515,7 @@ def assert_downloaded_file(self, file):
15151515
assert os.path.exists(self.get_path_of_downloaded_file(file))
15161516

15171517
def assert_no_js_errors(self):
1518-
""" Asserts that there are no Javascript errors on the page.
1518+
""" Asserts that there are no JavaScript errors on the page.
15191519
Only looks for "SEVERE"-level errors.
15201520
Works best when using Chrome.
15211521
Does NOT work on Firefox:
@@ -1535,7 +1535,7 @@ def assert_no_js_errors(self):
15351535
if len(errors) > 0:
15361536
current_url = self.get_current_url()
15371537
raise Exception(
1538-
"Javascript errors found on %s => %s" % (current_url, errors))
1538+
"JavaScript errors found on %s => %s" % (current_url, errors))
15391539

15401540
def get_google_auth_password(self, totp_key=None):
15411541
""" Returns a time-based one-time password based on the

seleniumbase/plugins/pytest_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def pytest_addoption(parser):
128128
parser.addoption('--check_js', action="store_true",
129129
dest='js_checking_on',
130130
default=False,
131-
help="""The option to check for Javascript errors after
131+
help="""The option to check for JavaScript errors after
132132
every page load.""")
133133
parser.addoption('--ad_block', action="store_true",
134134
dest='ad_block_on',

seleniumbase/plugins/selenium_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def options(self, parser, env):
105105
'--check_js', action="store_true",
106106
dest='js_checking_on',
107107
default=False,
108-
help="""The option to check for Javascript errors after
108+
help="""The option to check for JavaScript errors after
109109
every page load.""")
110110
parser.add_option(
111111
'--ad_block', action="store_true",

0 commit comments

Comments
 (0)