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

Method test_get_coffee

examples/test_get_coffee.py:7–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5
6class GetCoffeeTest(BaseCase):
7 def test_get_coffee(self):
8 self.goto("https://seleniumbase.io/coffee/")
9 self.assert_title("Coffee Cart")
10 self.assert_exact_text("cart (0)", 'a[aria-label="Cart page"]')
11 self.assert_element('div[data-sb="Mocha"]')
12 self.click('div[data-sb="Mocha"]')
13 self.assert_link_text("cart (1)")
14 self.click_link_text("cart (1)")
15 self.assert_exact_text("Total: $8.00", "button.pay")
16 self.click("button.pay")
17 self.type("input#name", "Selenium Coffee")
18 self.type("input#email", "test@test.test")
19 self.click("button#submit-payment")
20 self.assert_text("Thanks", "#app div.success")

Callers

nothing calls this directly

Calls 9

assert_link_textMethod · 0.80
click_link_textMethod · 0.80
gotoMethod · 0.45
assert_titleMethod · 0.45
assert_exact_textMethod · 0.45
assert_elementMethod · 0.45
clickMethod · 0.45
typeMethod · 0.45
assert_textMethod · 0.45

Tested by

no test coverage detected