You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/tour_examples/ReadMe.md
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Here's how you play a tour:
30
30
31
31
``self.play_tour(interval)``
32
32
33
-
With the ``create_tour()`` method, you can pass a default theme to change the look & feel of the tour steps. Valid themes are ``dark``, ``default``, ``arrows``, ``square``, and ``square-dark``.
33
+
With the ``create_tour()`` method, you can pass a default theme to change the look & feel of the tour steps. Valid themes for Shepherd Tours are ``dark``, ``light`` / ``arrows``, ``default``, ``square``, and ``square-dark``.
34
34
35
35
With the ``self.add_tour_step()`` method, you must first pass a message to display. You can then specify a web element to attach to (by using [CSS selectors](https://www.w3schools.com/cssref/css_selectors.asp)). If no element is specified, the tour step will tether to the top of the screen by default. You can also add an optional title above the message to display with the tour step, as well as change the theme for that step, and even specify the alignment (which is the side of the element that you want the tour message to tether to).
36
36
@@ -50,12 +50,20 @@ class MyTourClass(BaseCase):
50
50
self.wait_for_element('input[title="Search"]')
51
51
52
52
self.create_tour(theme="dark")
53
-
self.add_tour_step("Click to begin the Google Tour!", title="SeleniumBase Tours")
54
-
self.add_tour_step("Type in your search query here.", 'input[title="Search"]')
55
-
self.add_tour_step("Then click here to search!", 'input[value="Google Search"]',
56
-
alignment="bottom", theme="arrows")
57
-
self.add_tour_step("Or click here to see the top result.",
0 commit comments