Skip to content

Commit 7f37640

Browse files
authored
Merge pull request #199 from zw963/master
2 parents e4d6d8d + bcf57c8 commit 7f37640

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,6 +1029,20 @@ browser.playback_rate # => 2000
10291029
#### node? : `Boolean`
10301030
#### frame_id
10311031
#### 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+
10321046
#### focus
10331047
#### focusable?
10341048
#### moving? : `Boolean`

0 commit comments

Comments
 (0)