File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
examples/ruby/spec/interactions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 26
26
iframe = driver . find_element ( :id , 'iframe1' )
27
27
driver . switch_to . frame ( iframe )
28
28
expect ( driver . page_source ) . to include ( 'We Leave From Here' )
29
-
29
+
30
30
email_element = driver . find_element ( :id , 'email' )
31
31
email_element . send_keys ( 'admin@selenium.dev' )
32
32
email_element . clear
36
36
iframe1 = driver . find_element ( :name , 'iframe1-name' )
37
37
driver . switch_to . frame ( iframe1 )
38
38
expect ( driver . page_source ) . to include ( 'We Leave From Here' )
39
-
39
+
40
40
email = driver . find_element ( :id , 'email' )
41
41
email . send_keys ( 'admin@selenium.dev' )
42
42
email . clear
45
45
# --- Switch to iframe using index ---
46
46
driver . switch_to . frame ( 0 )
47
47
expect ( driver . page_source ) . to include ( 'We Leave From Here' )
48
-
48
+
49
49
# --- Final page content check ---
50
50
driver . switch_to . default_content
51
51
expect ( driver . page_source ) . to include ( 'This page has iframes' )
You can’t perform that action at this time.
0 commit comments