Method: Celerity::Frame#locate
- Defined in:
- lib/celerity/elements/frame.rb
#locate ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Override the default locate to handle frame and inline frames.
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/celerity/elements/frame.rb', line 26 def locate super if @object @inline_frame_object = @object.getEnclosedWindow.getFrameElement self.page = @object.getEnclosedPage if (frame = self.page.getDocumentElement) @object = frame end end end |