summaryrefslogtreecommitdiff
path: root/tests/appjs.py
blob: 02ac2193f5538c0c53ffaae7717b4ae6585a9f8b (plain)
1
2
3
4
5
6
7
8
9
10
11
import unittest
import base

class Suite(base.Base):
    def test_1(self):
        """Test case 1"""
        self.start()
        el = self.xpath('button')
        el.click()
        alert = self.driver.switch_to.alert
        self.assertEqual("3", alert.text)