summaryrefslogtreecommitdiff
path: root/tests/case.py
blob: 611273e200545431759a65923daae6999fb2fff5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import unittest
import base

class Suite(base.Base):
    def test_1(self):
        """Test case 1"""
        self.start('main')
        d = self.xpath('div')
        txt = "zero is two: B\none is two: B\ntwo is two: A"
        self.assertEqual(txt, d.text)

        b = self.xpath('button')
        b.click()
        alert = self.driver.switch_to.alert
        self.assertEqual(txt, alert.text)