We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbd47f3 commit a53fb8dCopy full SHA for a53fb8d
examples/test_coffee_cart.py
@@ -0,0 +1,16 @@
1
+from seleniumbase import BaseCase
2
+
3
4
+class CoffeeCartTest(BaseCase):
5
+ def test_coffee_cart(self):
6
+ self.open("https://coffee-cart.netlify.app/")
7
+ self.click('div[data-test="Cappucino"]')
8
+ self.click('div[data-test="Cafe_Latte"]')
9
+ self.click('div[data-test="Cafe_Breve"]')
10
+ self.click('a[aria-label="Cart page"]')
11
+ self.assert_exact_text("Total: $50.00", 'button[data-test="checkout"]')
12
+ self.click('button[data-test="checkout"]')
13
+ self.type("input#name", "Selenium Coffee")
14
+ self.type("input#email", "[email protected]")
15
+ self.click("button#submit-payment")
16
+ self.assert_text("Thanks for your purchase.", "div#app div")
0 commit comments