File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
class MyTestClass (BaseCase ):
5
5
6
- def test_double_click (self ):
6
+ def test_double_click_and_switch_to_frame (self ):
7
7
self .open ("https://www.w3schools.com/jsref"
8
8
"/tryit.asp?filename=tryjsref_ondblclick" )
9
- self .switch_to_frame ("iframeResult" )
9
+ self .ad_block ()
10
+ self .switch_to_frame ("#iframeResult" )
11
+ self .double_click ('[ondblclick="myFunction()"]' )
12
+ self .assert_text ("Hello World" , "#demo" )
13
+
14
+ def test_double_click_and_switch_to_frame_of_element (self ):
15
+ self .open ("https://www.w3schools.com/jsref"
16
+ "/tryit.asp?filename=tryjsref_ondblclick" )
17
+ self .ad_block ()
18
+ self .switch_to_frame_of_element ('[ondblclick="myFunction()"]' )
10
19
self .double_click ('[ondblclick="myFunction()"]' )
11
20
self .assert_text ("Hello World" , "#demo" )
You can’t perform that action at this time.
0 commit comments