lib/puppeteer/browser.rb in puppeteer-ruby-0.32.0 vs lib/puppeteer/browser.rb in puppeteer-ruby-0.32.1
- old
+ new
@@ -195,10 +195,9 @@
# https://github.com/YusukeIwaki/puppeteer-ruby/issues/91
# D, [2021-04-07T03:00:10.125241 #187] DEBUG -- : SEND >> {"method":"Target.createTarget","params":{"url":"about:blank","browserContextId":"56A86FC3391B50180CF9A6450A0D8C21"},"id":3}
# D, [2021-04-07T03:00:10.142396 #187] DEBUG -- : RECV << {"id"=>3, "result"=>{"targetId"=>"A518447C415A1A3E1A8979454A155632"}}
# D, [2021-04-07T03:00:10.145360 #187] DEBUG -- : RECV << {"method"=>"Target.targetCreated", "params"=>{"targetInfo"=>{"targetId"=>"A518447C415A1A3E1A8979454A155632", "type"=>"page", "title"=>"", "url"=>"", "attached"=>false, "canAccessOpener"=>false, "browserContextId"=>"56A86FC3391B50180CF9A6450A0D8C21"}}}
# This is just a workaround logic...
- Rollbar.info("Workaround of YusukeIwaki/puppeteer-ruby#91")
@wait_for_creating_targets[target_id] = resolvable_future
target = await @wait_for_creating_targets[target_id]
end
await target.initialized_promise
await target.page