File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def reset
43
43
attr_accessor :referrer
44
44
attr_reader :target_id , :browser ,
45
45
:headers , :cookies , :network ,
46
- :mouse , :keyboard , :event , :document_id
46
+ :mouse , :keyboard , :event
47
47
48
48
def initialize ( target_id , browser )
49
49
@frames = { }
@@ -280,7 +280,7 @@ def prepare_page
280
280
# occurs and thus search for nodes cannot be completed. Here we check
281
281
# the history and if the transitionType for example `link` then
282
282
# content is already loaded and we can try to get the document.
283
- get_document_id
283
+ document_node_id
284
284
end
285
285
286
286
def inject_extensions
@@ -321,8 +321,8 @@ def combine_url!(url_or_path)
321
321
( nil_or_relative ? @browser . base_url . join ( url . to_s ) : url ) . to_s
322
322
end
323
323
324
- def get_document_id
325
- @document_id = command ( "DOM.getDocument" , depth : 0 ) . dig ( "root" , "nodeId" )
324
+ def document_node_id
325
+ command ( "DOM.getDocument" , depth : 0 ) . dig ( "root" , "nodeId" )
326
326
end
327
327
end
328
328
end
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def frames_subscribe
47
47
# node will change the id and all subsequent nodes have to change id too.
48
48
if @main_frame . id == params [ "frameId" ]
49
49
@event . set if idling?
50
- get_document_id
50
+ document_node_id
51
51
end
52
52
53
53
frame = @frames [ params [ "frameId" ] ]
You can’t perform that action at this time.
0 commit comments