aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/alert.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/alert.py')
-rw-r--r--tests/alert.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/alert.py b/tests/alert.py
new file mode 100644
index 00000000..4b783d50
--- /dev/null
+++ b/tests/alert.py
@@ -0,0 +1,11 @@
+import unittest
+import base
+
+class Suite(base.Base):
+ def test_1(self):
+ """Test case 1"""
+ self.start()
+ el = self.xpath('a')
+ el.click()
+ alert = self.driver.switch_to.alert
+ self.assertEqual("You clicked it! That's some fancy shooting!", alert.text)