File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -848,17 +848,6 @@ browser.frames # =>
848
848
# ]
849
849
```
850
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
851
#### main_frame : ` Frame `
863
852
864
853
Returns page's main frame, the top of the tree and the parent of all frames.
@@ -1040,6 +1029,20 @@ browser.playback_rate # => 2000
1040
1029
#### node? : ` Boolean `
1041
1030
#### frame_id
1042
1031
#### frame
1032
+
1033
+ Returns the [ frame] ( https://github.com/rubycdp/ferrum#frame ) object within parent node:
1034
+
1035
+ ``` ruby
1036
+ div = browser.at_css(" div.has-frame" )
1037
+ div.at_css(" iframe" ).frame # => Frame
1038
+ ```
1039
+
1040
+ You can keep using [ Finders] ( https://github.com/rubycdp/ferrum#Finders ) within that frame object:
1041
+
1042
+ ``` ruby
1043
+ browser.at_css(" div.has-frame" ).frame.at_css(" body" ) # => Node
1044
+ ```
1045
+
1043
1046
#### focus
1044
1047
#### focusable?
1045
1048
#### moving? : ` Boolean `
You can’t perform that action at this time.
0 commit comments