Skip to content

Commit 324401e

Browse files
committed
Update example tests
1 parent eb6f4d1 commit 324401e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

examples/swag_labs_suite.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_swag_labs_basic_functional_flow(self, username):
7373
# Finish Checkout and verify the item was removed from the cart
7474
self.click("link=FINISH")
7575
self.assert_exact_text("THANK YOU FOR YOUR ORDER", "h2")
76-
self.assert_element("div.pony_express")
76+
self.assert_element("img.pony_express")
7777
self.click("#shopping_cart_container path")
7878
self.assert_element_absent("div.inventory_item_name")
7979
self.click(continue_shopping_button)

examples/test_apple_site.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ def test_apple_developer_site_webdriver_instructions(self):
1212
title = "Testing with WebDriver in Safari"
1313
self.type('[placeholder*="developer.apple.com"]', title + "\n")
1414
self.click("link=%s" % title)
15-
self.assert_element('[href="/documentation"]')
15+
self.assert_element('div.localnav-content [href*="/documentation/"]')
1616
self.assert_text(title, "h1")
17-
self.highlight("div.topic-description p")
17+
self.highlight("div.description div.abstract")
1818
self.highlight("h2")
1919
h3 = "h3:nth-of-type(%s)"
2020
self.assert_text("Make Sure You Have Safari’s WebDriver", h3 % "1")

examples/test_swag_labs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_swag_labs_basic_flow(self):
6565
# Finish Checkout and verify item is no longer in cart
6666
self.click("link=FINISH")
6767
self.assert_exact_text("THANK YOU FOR YOUR ORDER", "h2")
68-
self.assert_element("div.pony_express")
68+
self.assert_element("img.pony_express")
6969
self.click("#shopping_cart_container path")
7070
self.assert_element_absent("div.inventory_item_name")
7171
self.click(continue_shopping_button)

examples/test_usefixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def test_usefixtures_on_class(self):
88
sb.open("https://google.com/ncr")
99
sb.update_text('input[title="Search"]', 'SeleniumBase\n')
1010
sb.click('a[href*="github.com/seleniumbase/SeleniumBase"]')
11-
sb.assert_text("SeleniumBase", "h1.public")
11+
sb.assert_text("SeleniumBase", 'strong[itemprop="name"]')
1212
sb.assert_text("integrations")
1313
sb.assert_element('a[title="help_docs"]')
1414
sb.click('a[title="examples"]')

0 commit comments

Comments
 (0)