Skip to content

Instantly share code, notes, and snippets.

@up1
Created May 7, 2025 02:57
Show Gist options
  • Save up1/22adb3922fdc26ea1c1bb532164d84ee to your computer and use it in GitHub Desktop.
Save up1/22adb3922fdc26ea1c1bb532164d84ee to your computer and use it in GitHub Desktop.
Web UI test with Alumnium
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