Skip to content

Commit 0626f8c

Browse files
fixed code file with session
1 parent 76cc800 commit 0626f8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/ruby/spec/interactions/frames_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
require 'spec_helper'
44

55
RSpec.describe 'Frames Test' do
6+
#set session
67
let(:driver) { start_session }
7-
8-
before do
9-
driver.navigate.to 'https://www.selenium.dev/selenium/web/iframes.html'
10-
end
8+
let(:wait) { Selenium::WebDriver::Wait.new(timeout: 2) }
119

1210
it 'interacts with elements inside iframes' do
11+
#navigate to web page
12+
driver.navigate.to 'https://www.selenium.dev/selenium/web/iframes.html'
1313
# Switch to iframe using WebElement
1414
iframe = driver.find_element(id: 'iframe1')
1515
driver.switch_to.frame(iframe)

0 commit comments

Comments
 (0)