17 lines
570 B
Python
17 lines
570 B
Python
"""Test the SeleniumBase Calculator App"""
|
|
from seleniumbase import BaseCase
|
|
BaseCase.main(__name__, __file__)
|
|
|
|
|
|
class CalculatorTests(BaseCase):
|
|
def test_6_times_7_plus_12_equals_54(self):
|
|
self.open("seleniumbase.io/apps/calculator")
|
|
self.click('button[id="6"]')
|
|
self.click("button#multiply")
|
|
self.click('button[id="7"]')
|
|
self.click("button#add")
|
|
self.click('button[id="1"]')
|
|
self.click('button[id="2"]')
|
|
self.click("button#equal")
|
|
self.assert_exact_text("54", "input#output")
|