Skip to content

Commit 6499251

Browse files
committed
Add a double_click test
1 parent d892bda commit 6499251

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

examples/test_double_click.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from seleniumbase import BaseCase
2+
3+
4+
class MyTestClass(BaseCase):
5+
6+
def test_double_click(self):
7+
self.open("https://www.w3schools.com/jsref"
8+
"/tryit.asp?filename=tryjsref_ondblclick")
9+
self.switch_to_frame("iframeResult")
10+
self.double_click('[ondblclick="myFunction()"]')
11+
self.assert_text("Hello World", "#demo")

0 commit comments

Comments
 (0)