blob: f2390368d4f1a69b774749956492f6cc68eb42a9 (
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('input')
p = self.xpath('span')
self.assertEqual("True 1", p.text)
d.click()
# the elements gets re-created from scratch
# so we must refresh our reference
p = self.xpath('span')
self.assertEqual("False 3", p.text)
|