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
(Above: Actual demo of [google_tour.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/tour_examples/google_tour.py) running on [google.com](https://google.com))
65
65
66
66
For more detailed steps on getting started, see the [**Detailed Instructions**](#seleniumbase_installation) section.
SeleniumBase Tours utilize the **[Shepherd Javascript Library](https://cdnjs.com/libraries/shepherd/1.8.1)** and the **[Bootstrap Tour Library](https://cdnjs.com/libraries/bootstrap-tour)** for creating and running tours, demos, and walkthroughs on any website.
4
4
5
-
SeleniumBase Tours utilize the [Shepherd Javascript Library](https://cdnjs.com/libraries/shepherd/1.8.1) for creating and running tours, demos, and walkthroughs on any website.
5
+
Example tour utilizing the Shepherd Javascript Library:
6
6
7
-
To utilize tours, there are three methods that you need to know at the basic level (which contain optional arguments):
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``.
@@ -18,6 +36,8 @@ With the ``self.add_tour_step()`` method, you must first pass a message to displ
18
36
19
37
Finally, you can play a tour you created by calling the ``self.play_tour()`` method. If you specify an interval, the tour will automatically walk through each step after that many seconds have passed.
20
38
39
+
All methods have the optional ``name`` argument, which is only needed if you're creating multiple tours at once. Then, when you're adding a step or playing a tour, SeleniumBase knows which tour you're referring too. You can avoid using the ``name`` arg for multiple tours if you play a tour before creating a new one.
40
+
21
41
### Here's an example of using SeleniumBase Tours:
22
42
23
43
```python
@@ -44,3 +64,9 @@ class MyTourClass(BaseCase):
44
64
```bash
45
65
pytest google_tour.py
46
66
```
67
+
68
+
#### There's also the Bootstrap Google Tour, which you can play with the following command:
0 commit comments