MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / test_xkcd

Method test_xkcd

examples/test_xkcd.py:6–16  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4
5class MyTestClass(BaseCase):
6 def test_xkcd(self):
7 self.goto("https://xkcd.com/353/")
8 self.assert_title("xkcd: Python")
9 self.assert_element('img[alt="Python"]')
10 self.click('a[rel="license"]')
11 self.assert_text("free to copy and reuse")
12 self.go_back()
13 self.click_link("About")
14 self.assert_exact_text("xkcd.com", "h2")
15 self.click_link("comic #249")
16 self.assert_element('img[alt*="Chess"]')

Callers

nothing calls this directly

Calls 8

gotoMethod · 0.45
assert_titleMethod · 0.45
assert_elementMethod · 0.45
clickMethod · 0.45
assert_textMethod · 0.45
go_backMethod · 0.45
click_linkMethod · 0.45
assert_exact_textMethod · 0.45

Tested by

no test coverage detected