class WebDriverScriptAdapter::FrameAdapter::SeleniumAdapter
Public Instance Methods
find_frames()
click to toggle source
# File lib/webdriver_script_adapter/frame_adapter.rb, line 51 def find_frames find_elements(:css, 'iframe') end
within_frame(frame) { || ... }
click to toggle source
# File lib/webdriver_script_adapter/frame_adapter.rb, line 37 def within_frame(frame) switch_to.frame(frame) yield ensure begin switch_to.parent_frame rescue => e if /switchToParentFrame|frame\/parent/.match(e.message) ::Kernel.warn "WARNING: This browser only supports first-level iframes. Second-level iframes and beyond will not be audited. To skip auditing all iframes, set Axe::Configuration#skip_iframes=true" end switch_to.default_content end end