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

class Suite(base.Base):
    def test_1(self):
        """Test case 1"""
        self.start()
        alert = self.driver.switch_to.alert
        self.assertEqual("Hi!", alert.text)
        alert.accept()
        time.sleep(0.1)
        alert = self.driver.switch_to.alert
        self.assertEqual("Bye!", alert.text)
        alert.accept()