Created
May 7, 2025 02:57
-
-
Save up1/22adb3922fdc26ea1c1bb532164d84ee to your computer and use it in GitHub Desktop.
Web UI test with Alumnium
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from alumnium import Alumni | |
from selenium.webdriver import Chrome | |
driver = Chrome() | |
driver.get("https://seleniumbase.io/coffee/") | |
al = Alumni(driver) | |
al.check("Espresso is on the menu") | |
al.do("Choose 'Espresso' from the menu") | |
al.check("Cart have 1 item") | |
al.do("View cart") | |
al.check("Espresso is in cart and has price = $10.00") | |
assert al.get("Total price") == "$10.00" | |
al.do("Remove 'Espresso' from cart") | |
al.check("Cart is empty") | |
driver.quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment