File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ def frames_subscribe
75
75
frame_id = params . dig ( "context" , "auxData" , "frameId" )
76
76
77
77
unless @main_frame . id
78
- root_frame = command ( ' Page.getFrameTree' ) . dig ( ' frameTree' , ' frame' , 'id' )
78
+ root_frame = command ( " Page.getFrameTree" ) . dig ( " frameTree" , " frame" , "id" )
79
79
if frame_id == root_frame
80
80
@main_frame . id = frame_id
81
81
@frames [ frame_id ] = @main_frame
Original file line number Diff line number Diff line change @@ -27,9 +27,11 @@ module Ferrum
27
27
expect ( frame . url ) . to end_with ( "/ferrum/get_cookie" )
28
28
end
29
29
30
- it 'finds main frame properly' do
31
- browser . goto ( "/ferrum/popup_frames" )
30
+ it "finds main frame properly" do
31
+ browser . go_to ( "/ferrum/popup_frames" )
32
+
32
33
browser . at_xpath ( "//a[text()='pop up']" ) . click
34
+
33
35
expect ( browser . pages . size ) . to eq ( 2 )
34
36
opened_page = browser . pages . last
35
37
expect ( opened_page . main_frame . url ) . to end_with ( "/frames" )
You can’t perform that action at this time.
0 commit comments