@@ -10,10 +10,8 @@ def test_google_tour(self):
10
10
# Create a website tour using the ShepherdJS library with "dark" theme
11
11
# Same as: self.create_shepherd_tour(theme="dark")
12
12
self .create_tour (theme = "dark" )
13
- self .add_tour_step (
14
- "Click to begin the Google Tour!" , title = "SeleniumBase Tours" )
15
- self .add_tour_step (
16
- "Type in your search query here." , 'input[title="Search"]' )
13
+ self .add_tour_step ("Welcome to Google!" , title = "SeleniumBase Tours" )
14
+ self .add_tour_step ("Type in your query here." , 'input[title="Search"]' )
17
15
self .play_tour ()
18
16
19
17
self .highlight_update_text ('input[title="Search"]' , "Google" )
@@ -22,10 +20,8 @@ def test_google_tour(self):
22
20
# Create a website tour using the ShepherdJS library with "light" theme
23
21
# Same as: self.create_shepherd_tour(theme="light")
24
22
self .create_tour (theme = "light" )
25
- self .add_tour_step (
26
- "Then click here to search." , 'input[value="Google Search"]' )
27
- self .add_tour_step (
28
- "Or press [ENTER] after typing a query here." , '[title="Search"]' )
23
+ self .add_tour_step ("Then click to search." , '[value="Google Search"]' )
24
+ self .add_tour_step ("Or press [ENTER] after entry." , '[title="Search"]' )
29
25
self .play_tour ()
30
26
31
27
self .highlight_update_text ('input[title="Search"]' , "GitHub\n " )
@@ -34,9 +30,8 @@ def test_google_tour(self):
34
30
# Create a website tour using the Bootstrap Tour JS library
35
31
# Same as: self.create_bootstrap_tour()
36
32
self .create_tour (theme = "bootstrap" )
37
- self .add_tour_step (
38
- "Search results appear here!" , title = "(5-second autoplay on)" )
39
- self .add_tour_step ("Let's take another tour:" , theme = "light" )
33
+ self .add_tour_step ("See results here!" , title = "(autoplay in 5s)" )
34
+ self .add_tour_step ("Here's the next tour:" )
40
35
self .play_tour (interval = 5 ) # Tour automatically continues after 5 sec
41
36
42
37
self .open ("https://www.google.com/maps/@42.3598616,-71.0912631,15z" )
@@ -47,31 +42,24 @@ def test_google_tour(self):
47
42
# Create a website tour using the IntroJS library
48
43
# Same as: self.create_introjs_tour()
49
44
self .create_tour (theme = "introjs" )
50
- self .add_tour_step (
51
- "Welcome to Google Maps!" )
52
- self .add_tour_step (
53
- "Type in a location here." , "#searchboxinput" , title = "Search Box" )
54
- self .add_tour_step (
55
- "Then click here to show it on the map." ,
56
- "#searchbox-searchbutton" , alignment = "bottom" )
57
- self .add_tour_step (
58
- "Or click here to get driving directions." ,
59
- "#searchbox-directions" , alignment = "bottom" )
60
- self .add_tour_step (
61
- "Use this button to switch to Satellite view." ,
62
- "#minimap div.widget-minimap" , alignment = "right" )
63
- self .add_tour_step (
64
- "Click here to zoom in." , "#widget-zoom-in" , alignment = "left" )
65
- self .add_tour_step (
66
- "Or click here to zoom out." , "#widget-zoom-out" , alignment = "left" )
67
- self .add_tour_step (
68
- "Use the Menu button to see more options." ,
69
- ".searchbox-hamburger-container" , alignment = "right" )
70
- self .add_tour_step (
71
- "Or click here to see more Google apps." , '[title="Google apps"]' ,
72
- alignment = "left" )
73
- self .add_tour_step (
74
- "Thanks for trying out SeleniumBase Tours!" ,
75
- title = "End of Guided Tour" )
76
- self .export_tour ()
45
+ self .add_tour_step ("Welcome to Google Maps!" )
46
+ self .add_tour_step ("Type in a location here." ,
47
+ "#searchboxinput" , title = "Search Box" )
48
+ self .add_tour_step ("Then click here to show it on the map." ,
49
+ "#searchbox-searchbutton" , alignment = "bottom" )
50
+ self .add_tour_step ("Or click here to get driving directions." ,
51
+ "#searchbox-directions" , alignment = "bottom" )
52
+ self .add_tour_step ("Use this button to switch to Satellite view." ,
53
+ "#minimap div.widget-minimap" , alignment = "right" )
54
+ self .add_tour_step ("Click here to zoom in." ,
55
+ "#widget-zoom-in" , alignment = "left" )
56
+ self .add_tour_step ("Or click here to zoom out." ,
57
+ "#widget-zoom-out" , alignment = "left" )
58
+ self .add_tour_step ("Use the Menu button to see more options." ,
59
+ ".searchbox-hamburger-container" , alignment = "right" )
60
+ self .add_tour_step ("Or click here to see more Google apps." ,
61
+ '[title="Google apps"]' , alignment = "left" )
62
+ self .add_tour_step ("Thanks for using SeleniumBase Tours!" ,
63
+ title = "End of Guided Tour" )
64
+ self .export_tour () # The default name for exports is "my_tour.js"
77
65
self .play_tour ()
0 commit comments