Skip to content

Commit d81e62b

Browse files
committed
Set the default website tour library theme to be "IntroJS"
1 parent 6f23b1e commit d81e62b

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7276,17 +7276,15 @@ def extract_chart(self, chart_name=None):
72767276
############
72777277

72787278
def create_tour(self, name=None, theme=None):
7279-
"""Creates a tour for a website. By default, the Shepherd JavaScript
7280-
Library is used with the Shepherd "Light" / "Arrows" theme.
7279+
"""Creates a guided tour for any website.
7280+
The default theme is the IntroJS Library.
72817281
@Params
72827282
name - If creating multiple tours at the same time,
72837283
use this to select the tour you wish to add steps to.
7284-
theme - Sets the default theme for the tour.
7285-
Choose from "light"/"arrows", "dark", "default", "square",
7286-
and "square-dark". ("arrows" is used if None is selected.)
7287-
Alternatively, you may use a different JavaScript Library
7288-
as the theme. Those include "IntroJS", "DriverJS",
7289-
"Hopscotch", and "Bootstrap".
7284+
theme - Sets the default theme for the website tour. Available themes:
7285+
"Bootstrap", "DriverJS", "Hopscotch", "IntroJS", "Shepherd".
7286+
The "Shepherd" library also contains multiple variation themes:
7287+
"light"/"arrows", "dark", "default", "square", "square-dark".
72907288
"""
72917289
if not name:
72927290
name = "default"
@@ -7308,20 +7306,20 @@ def create_tour(self, name=None, theme=None):
73087306
self.create_shepherd_tour(name, theme="light")
73097307
elif theme.lower() == "light":
73107308
self.create_shepherd_tour(name, theme="light")
7311-
elif theme.lower() == "dark":
7312-
self.create_shepherd_tour(name, theme="dark")
73137309
elif theme.lower() == "arrows":
73147310
self.create_shepherd_tour(name, theme="light")
7311+
elif theme.lower() == "dark":
7312+
self.create_shepherd_tour(name, theme="dark")
73157313
elif theme.lower() == "square":
73167314
self.create_shepherd_tour(name, theme="square")
73177315
elif theme.lower() == "square-dark":
73187316
self.create_shepherd_tour(name, theme="square-dark")
73197317
elif theme.lower() == "default":
73207318
self.create_shepherd_tour(name, theme="default")
73217319
else:
7322-
self.create_shepherd_tour(name, theme)
7320+
self.create_introjs_tour(name)
73237321
else:
7324-
self.create_shepherd_tour(name, theme="light")
7322+
self.create_introjs_tour(name)
73257323

73267324
def create_shepherd_tour(self, name=None, theme=None):
73277325
"""Creates a Shepherd JS website tour.

0 commit comments

Comments
 (0)