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 2626 iframe = driver . find_element ( :id , 'iframe1' )
2727 driver . switch_to . frame ( iframe )
2828 expect ( driver . page_source ) . to include ( 'We Leave From Here' )
29-
29+
3030 email_element = driver . find_element ( :id , 'email' )
3131 email_element . send_keys ( '[email protected] ' ) 3232 email_element . clear
3636 iframe1 = driver . find_element ( :name , 'iframe1-name' )
3737 driver . switch_to . frame ( iframe1 )
3838 expect ( driver . page_source ) . to include ( 'We Leave From Here' )
39-
39+
4040 email = driver . find_element ( :id , 'email' )
4141 email . send_keys ( '[email protected] ' ) 4242 email . clear
4545 # --- Switch to iframe using index ---
4646 driver . switch_to . frame ( 0 )
4747 expect ( driver . page_source ) . to include ( 'We Leave From Here' )
48-
48+
4949 # --- Final page content check ---
5050 driver . switch_to . default_content
5151 expect ( driver . page_source ) . to include ( 'This page has iframes' )
You can’t perform that action at this time.
0 commit comments