Skip to content

Commit 5a7c52b

Browse files
committed
Update an example test
1 parent ac55fc4 commit 5a7c52b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/test_apple_site.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ def test_apple_developer_site_webdriver_instructions(self):
2323
self.assert_element("nav.documentation-nav")
2424
self.assert_text(title, "h1")
2525
self.assert_text("Enable WebDriver and run a test.", "div.abstract")
26-
self.highlight("div.content h2")
26+
if self.demo_mode:
27+
self.highlight("div.content h2")
28+
else:
29+
self.assert_element("div.content h2")
2730
h3 = "div.content h3:nth-of-type(%s)"
2831
self.assert_text("Make Sure You Have Safari’s WebDriver", h3 % "1")
2932
self.assert_text("Get the Correct Selenium Library", h3 % "2")

0 commit comments

Comments
 (0)