We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4d6d8d commit f072bb9Copy full SHA for f072bb9
README.md
@@ -848,6 +848,17 @@ browser.frames # =>
848
# ]
849
```
850
851
+### frame: `Frame | nil`
852
+
853
+Return the frame object within parent element use [frame](https://github.com/rubycdp/ferrum#frame-1) method.
854
855
+```ruby
856
+frame = p.at_css('iframe').frame # => #<Ferrum::Frame >,
857
858
+# You can use finder method on frame object as a normal element.
859
+frame.at_css("body").text
860
+```
861
862
#### main_frame : `Frame`
863
864
Returns page's main frame, the top of the tree and the parent of all frames.
0 commit comments