Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions seleniumbase/fixtures/base_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,15 +754,15 @@ def __escape_quotes_if_needed(self, string):
return js_utils.escape_quotes_if_needed(string)

def create_tour(self, name=None, theme=None):
""" Creates a tour for a website. By default, the Shepherd Javascript
""" Creates a tour for a website. By default, the Shepherd JavaScript
Library is used with the Shepherd "Light" / "Arrows" theme.
@Params
name - If creating multiple tours at the same time,
use this to select the tour you wish to add steps to.
theme - Sets the default theme for the tour.
Choose from "light"/"arrows", "dark", "default", "square",
and "square-dark". ("arrows" is used if None is selected.)
Alternatively, you may use a different Javascript Library
Alternatively, you may use a different JavaScript Library
as the theme. Those include "IntroJS", "Bootstrap", and
"Hopscotch".
"""
Expand Down Expand Up @@ -1169,7 +1169,7 @@ def export_tour(self, name=None, filename="my_tour.js"):
@Params
name - If creating multiple tours at the same time,
use this to select the tour you wish to add steps to.
filename - The name of the javascript file that you wish to
filename - The name of the JavaScript file that you wish to
save the tour to. """
tour_helper.export_tour(self._tour_steps, name=name, filename=filename)

Expand Down Expand Up @@ -1515,7 +1515,7 @@ def assert_downloaded_file(self, file):
assert os.path.exists(self.get_path_of_downloaded_file(file))

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

def get_google_auth_password(self, totp_key=None):
""" Returns a time-based one-time password based on the
Expand Down
2 changes: 1 addition & 1 deletion seleniumbase/plugins/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def pytest_addoption(parser):
parser.addoption('--check_js', action="store_true",
dest='js_checking_on',
default=False,
help="""The option to check for Javascript errors after
help="""The option to check for JavaScript errors after
every page load.""")
parser.addoption('--ad_block', action="store_true",
dest='ad_block_on',
Expand Down
2 changes: 1 addition & 1 deletion seleniumbase/plugins/selenium_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def options(self, parser, env):
'--check_js', action="store_true",
dest='js_checking_on',
default=False,
help="""The option to check for Javascript errors after
help="""The option to check for JavaScript errors after
every page load.""")
parser.add_option(
'--ad_block', action="store_true",
Expand Down