Skip to content

Commit e654af0

Browse files
committed
Update Tour examples
1 parent bb2e66d commit e654af0

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

examples/tour_examples/bootstrap_google_tour.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@
55
class MyTourClass(BaseCase):
66
def test_google_tour(self):
77
self.open("https://google.com/ncr")
8-
self.wait_for_element('input[title="Search"]')
8+
self.wait_for_element('[title="Search"]')
99
self.hide_elements("iframe")
1010

1111
self.create_bootstrap_tour() # OR self.create_tour(theme="bootstrap")
1212
self.add_tour_step("Welcome to Google!", title="SeleniumBase Tours")
13-
self.add_tour_step("Type in your query here.", 'input[title="Search"]')
13+
self.add_tour_step("Type in your query here.", '[title="Search"]')
1414
self.play_tour()
1515

16-
self.highlight_type('input[title="Search"]', "Google")
16+
self.highlight_type('[title="Search"]', "Google")
1717
self.wait_for_element('[role="listbox"]') # Wait for autocomplete
1818

1919
self.create_bootstrap_tour()
2020
self.add_tour_step("Then click to search.", '[value="Google Search"]')
2121
self.add_tour_step("Or press [ENTER] after entry.", '[title="Search"]')
2222
self.play_tour()
2323

24-
self.highlight_type('input[title="Search"]', "GitHub\n")
24+
self.highlight_type('[title="Search"]', "GitHub\n")
2525
self.ad_block()
2626
self.wait_for_element("#search")
2727

examples/tour_examples/google_tour.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
class MyTourClass(BaseCase):
66
def test_google_tour(self):
77
self.open("https://google.com/ncr")
8-
self.wait_for_element('input[title="Search"]')
8+
self.wait_for_element('[title="Search"]')
99
self.hide_elements("iframe")
1010

1111
# Create a website tour using the ShepherdJS library with "dark" theme
1212
# Same as: self.create_shepherd_tour(theme="dark")
1313
self.create_tour(theme="dark")
1414
self.add_tour_step("Welcome to Google!", title="SeleniumBase Tours")
15-
self.add_tour_step("Type in your query here.", 'input[title="Search"]')
15+
self.add_tour_step("Type in your query here.", '[title="Search"]')
1616
self.play_tour()
1717

18-
self.highlight_type('input[title="Search"]', "Google")
18+
self.highlight_type('[title="Search"]', "Google")
1919
self.wait_for_element('[role="listbox"]') # Wait for autocomplete
2020

2121
# Create a website tour using the ShepherdJS library with "light" theme
@@ -25,7 +25,7 @@ def test_google_tour(self):
2525
self.add_tour_step("Or press [ENTER] after entry.", '[title="Search"]')
2626
self.play_tour()
2727

28-
self.highlight_type('input[title="Search"]', "GitHub\n")
28+
self.highlight_type('[title="Search"]', "GitHub\n")
2929
self.ad_block()
3030
self.wait_for_element("#search")
3131

examples/tour_examples/hopscotch_google_tour.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@
55
class MyTourClass(BaseCase):
66
def test_google_tour(self):
77
self.open("https://google.com/ncr")
8-
self.wait_for_element('input[title="Search"]')
8+
self.wait_for_element('[title="Search"]')
99
self.hide_elements("iframe")
1010

1111
self.create_hopscotch_tour() # OR self.create_tour(theme="hopscotch")
1212
self.add_tour_step("Welcome to Google!", title="SeleniumBase Tours")
13-
self.add_tour_step("Type in your query here.", 'input[title="Search"]')
13+
self.add_tour_step("Type in your query here.", '[title="Search"]')
1414
self.play_tour()
1515

16-
self.highlight_type('input[title="Search"]', "Google")
16+
self.highlight_type('[title="Search"]', "Google")
1717
self.wait_for_element('[role="listbox"]') # Wait for autocomplete
1818

1919
self.create_hopscotch_tour()
2020
self.add_tour_step("Then click to search.", '[value="Google Search"]')
2121
self.add_tour_step("Or press [ENTER] after entry.", '[title="Search"]')
2222
self.play_tour()
2323

24-
self.highlight_type('input[title="Search"]', "GitHub\n")
24+
self.highlight_type('[title="Search"]', "GitHub\n")
2525
self.ad_block()
2626
self.wait_for_element("#search")
2727

examples/tour_examples/introjs_google_tour.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@
55
class MyTourClass(BaseCase):
66
def test_google_tour(self):
77
self.open("https://google.com/ncr")
8-
self.wait_for_element('input[title="Search"]')
8+
self.wait_for_element('[title="Search"]')
99
self.hide_elements("iframe")
1010

1111
self.create_introjs_tour() # OR self.create_tour(theme="introjs")
1212
self.add_tour_step("Welcome to Google!", title="SeleniumBase Tours")
13-
self.add_tour_step("Type in your query here.", 'input[title="Search"]')
13+
self.add_tour_step("Type in your query here.", '[title="Search"]')
1414
self.play_tour()
1515

16-
self.highlight_type('input[title="Search"]', "Google")
16+
self.highlight_type('[title="Search"]', "Google")
1717
self.wait_for_element('[role="listbox"]') # Wait for autocomplete
1818

1919
self.create_introjs_tour()
2020
self.add_tour_step("Then click to search.", '[value="Google Search"]')
2121
self.add_tour_step("Or press [ENTER] after entry.", '[title="Search"]')
2222
self.play_tour()
2323

24-
self.highlight_type('input[title="Search"]', "GitHub\n")
24+
self.highlight_type('[title="Search"]', "GitHub\n")
2525
self.ad_block()
2626
self.wait_for_element("#search")
2727

examples/tour_examples/shepherd_google_tour.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@
55
class MyTourClass(BaseCase):
66
def test_google_tour(self):
77
self.open("https://google.com/ncr")
8-
self.wait_for_element('input[title="Search"]')
8+
self.wait_for_element('[title="Search"]')
99
self.hide_elements("iframe")
1010

1111
self.create_shepherd_tour(theme="dark")
1212
self.add_tour_step("Welcome to Google!", title="SeleniumBase Tours")
13-
self.add_tour_step("Type in your query here.", 'input[title="Search"]')
13+
self.add_tour_step("Type in your query here.", '[title="Search"]')
1414
self.play_tour()
1515

16-
self.highlight_type('input[title="Search"]', "Google")
16+
self.highlight_type('[title="Search"]', "Google")
1717
self.wait_for_element('[role="listbox"]') # Wait for autocomplete
1818

1919
self.create_shepherd_tour(theme="light")
2020
self.add_tour_step("Then click to search.", '[value="Google Search"]')
2121
self.add_tour_step("Or press [ENTER] after entry.", '[title="Search"]')
2222
self.play_tour()
2323

24-
self.highlight_type('input[title="Search"]', "GitHub\n")
24+
self.highlight_type('[title="Search"]', "GitHub\n")
2525
self.ad_block()
2626
self.wait_for_element("#search")
2727

0 commit comments

Comments
 (0)