@@ -7,6 +7,8 @@ def test_google_tour(self):
77 self .open ('https://google.com' )
88 self .wait_for_element ('input[title="Search"]' )
99
10+ # Create a website tour using the ShepherdJS library with "dark" theme
11+ # Same as: self.create_shepherd_tour(theme="dark")
1012 self .create_tour (theme = "dark" )
1113 self .add_tour_step (
1214 "Click to begin the Google Tour!" , title = "SeleniumBase Tours" )
@@ -17,25 +19,32 @@ def test_google_tour(self):
1719 self .highlight_update_text ('input[title="Search"]' , "Google" )
1820 self .wait_for_element ('[role="listbox"]' ) # Wait for autocomplete
1921
22+ # Create a website tour using the ShepherdJS library with "light" theme
23+ # Same as: self.create_shepherd_tour(theme="light")
2024 self .create_tour (theme = "light" )
2125 self .add_tour_step (
2226 "Then click here to search." , 'input[value="Google Search"]' )
2327 self .add_tour_step (
24- "Or press [ENTER] after typing." , '[title="Search"]' , theme = "dark" )
28+ "Or press [ENTER] after typing a query here ." , '[title="Search"]' )
2529 self .play_tour ()
2630
2731 self .highlight_update_text ('input[title="Search"]' , "GitHub\n " )
32+ self .wait_for_element ("#search" )
2833
29- self .create_tour (theme = "dark" )
34+ # Create a website tour using the Bootstrap Tour JS library
35+ # Same as: self.create_bootstrap_tour()
36+ self .create_tour (theme = "bootstrap" )
3037 self .add_tour_step (
3138 "Search results appear here!" , title = "(5-second autoplay on)" )
3239 self .add_tour_step ("Let's take another tour:" , theme = "light" )
33- self .play_tour (interval = 5 ) # tour automatically continues after 5 sec
40+ self .play_tour (interval = 5 ) # Tour automatically continues after 5 sec
3441
3542 self .open ("https://www.google.com/maps/@42.3598616,-71.0912631,15z" )
3643 self .wait_for_element ('input#searchboxinput' )
3744
38- self .create_tour (theme = "dark" )
45+ # Create a website tour using the IntroJS library
46+ # Same as: self.create_introjs_tour()
47+ self .create_tour (theme = "introjs" )
3948 self .add_tour_step (
4049 "Welcome to Google Maps!" )
4150 self .add_tour_step (
@@ -45,15 +54,14 @@ def test_google_tour(self):
4554 "#searchbox-searchbutton" , alignment = "bottom" )
4655 self .add_tour_step (
4756 "Or click here to get driving directions." ,
48- "#searchbox-directions" , alignment = "bottom" , theme = "square-dark" )
57+ "#searchbox-directions" , alignment = "bottom" )
4958 self .add_tour_step (
5059 "Use this button to switch to Satellite view." ,
5160 "div.widget-minimap" , alignment = "right" )
5261 self .add_tour_step (
5362 "Click here to zoom in." , "#widget-zoom-in" , alignment = "left" )
5463 self .add_tour_step (
55- "Or click here to zoom out." , "#widget-zoom-out" ,
56- alignment = "left" , theme = "default" )
64+ "Or click here to zoom out." , "#widget-zoom-out" , alignment = "left" )
5765 self .add_tour_step (
5866 "Use the Menu button to see more options." ,
5967 ".searchbox-hamburger-container" , alignment = "right" )
@@ -62,5 +70,5 @@ def test_google_tour(self):
6270 alignment = "left" )
6371 self .add_tour_step (
6472 "Thanks for trying out SeleniumBase Tours!" ,
65- title = "End of Guided Tour" , theme = "light" )
66- self .play_tour () # If interval isn't set, tour is fully manual
73+ title = "End of Guided Tour" )
74+ self .play_tour ()
0 commit comments