File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
examples/ruby/spec/interactions Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2424
2525 it 'performs iframe switching operations' do
2626 # Set firefox and launch web page
27- #driver = Selenium::WebDriver.for :firefox
27+ # driver = Selenium::WebDriver.for :firefox
2828 driver . get ( 'https://www.selenium.dev/selenium/web/iframes.html' )
2929 # --- Switch to iframe using WebElement ---
3030 iframe = driver . find_element ( :id , 'iframe1' )
3737 driver . switch_to . default_content
3838
3939 # --- Switch to iframe using name or ID ---
40- iframe1 = driver . find_element ( :name , 'iframe1-name' ) # (This line doesn't switch, just locates)
40+ iframe1 = driver . find_element ( :name , 'iframe1-name' ) # (This line doesn't switch, just locates)
4141 driver . switch_to . frame ( iframe1 )
4242 expect ( driver . page_source ) . to include ( 'We Leave From Here' )
4343
You can’t perform that action at this time.
0 commit comments