class WebDriverScriptAdapter::FrameAdapter::WatirAdapter

Public Instance Methods

find_frames() click to toggle source
# File lib/webdriver_script_adapter/frame_adapter.rb, line 31
def find_frames
  driver.find_elements(:css, 'iframe')
end
within_frame(frame, &block) click to toggle source

delegate to Watir's Selenium driver

# File lib/webdriver_script_adapter/frame_adapter.rb, line 27
def within_frame(frame, &block)
  SeleniumAdapter.instance_method(:within_frame).bind(FrameAdapter.wrap driver).call(frame, &block)
end