summaryrefslogtreecommitdiff
path: root/tests/autocomp.py
blob: 28c3b7d23282b5a0693ba47873cb2406dc03c13b (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()
        txt = self.xpath('div')
        self.assertEqual('/', txt.text)
        inp = self.xpath('/input')
        inp.send_keys('hello there')
        self.assertEqual('hello there /', txt.text)
        btn = self.xpath('button')
        btn.click()
        self.assertEqual("hello there / hello there", txt.text)