Comments (5)
I just noticed something. The screenshot feature is not the problem. It looks like the whole thing is not working properly, I can't control the browser at all. If I do 2 calls to goto in a row, only the first one works, then I get the "Browser is dead" error.
Code:
browser = Ferrum::Browser.new(logger: STDERR)
browser.goto("https://github.com")
browser.goto("https://www.google.com")
Logs:
▶ 0.8273315410042414 {"method":"Target.setDiscoverTargets","params":{"discover":true},"id":1}
◀ 0.8515643650025595 {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"8d06f69f-9e2d-42f8-a95d-71916a670568","type":"browser","title":"","url":"","attached":false}}}
◀ 0.8527952450094745 {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"97ae3ca2-1020-41eb-a14d-58b94b4cff80","type":"browser","title":"","url":"","attached":true}}}
◀ 0.8537152420030907 {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"FA392073A4BC25D45E7A6C48762B8FA7","type":"page","title":"","url":"about:blank","attached":false,"browserContextId":"F08E18570E4ECBF55B9044D3AA9AFC87"}}}
◀ 0.8544641970074736 {"id":1,"result":{}}
▶ 0.8556794010073645 {"method":"Target.createBrowserContext","params":{},"id":2}
◀ 0.857774028001586 {"id":2,"result":{"browserContextId":"B29FE9DF9135379F47844E5D66ECE356"}}
▶ 0.8594097510067513 {"method":"Target.createTarget","params":{"browserContextId":"B29FE9DF9135379F47844E5D66ECE356","url":"about:blank"},"id":3}
◀ 0.8694654940045439 {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","type":"page","title":"","url":"","attached":false,"browserContextId":"B29FE9DF9135379F47844E5D66ECE356"}}}
◀ 0.8752689090033527 {"id":3,"result":{"targetId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4"}}
▶ 0.880771440002718 {"method":"Page.enable","params":{},"id":1001}
◀ 0.882298101001652 {"method":"Target.targetInfoChanged","params":{"targetInfo":{"targetId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","type":"page","title":"","url":"about:blank","attached":true,"browserContextId":"B29FE9DF9135379F47844E5D66ECE356"}}}
◀ 0.9665551200014306 {"method":"Target.targetInfoChanged","params":{"targetInfo":{"targetId":"FA392073A4BC25D45E7A6C48762B8FA7","type":"page","title":"about:blank","url":"about:blank","attached":false,"browserContextId":"F08E18570E4ECBF55B9044D3AA9AFC87"}}}
◀ 0.991672471005586 {"method":"Target.targetInfoChanged","params":{"targetInfo":{"targetId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","type":"page","title":"about:blank","url":"about:blank","attached":true,"browserContextId":"B29FE9DF9135379F47844E5D66ECE356"}}}
◀ 0.9962656830030028 {"id":1001,"result":{}}
▶ 0.9977559899998596 {"method":"DOM.enable","params":{},"id":1002}
◀ 1.002654720999999 {"id":1002,"result":{}}
▶ 1.004209714999888 {"method":"CSS.enable","params":{},"id":1003}
◀ 1.0111372920073336 {"id":1003,"result":{}}
▶ 1.0124577560054604 {"method":"Runtime.enable","params":{},"id":1004}
◀ 1.0224334470112808 {"method":"Runtime.executionContextCreated","params":{"context":{"id":1,"origin":"://","name":"","auxData":{"isDefault":true,"type":"default","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4"}}}}
◀ 1.0235663070052397 {"id":1004,"result":{}}
▶ 1.0245415110111935 {"method":"Log.enable","params":{},"id":1005}
◀ 1.02619171301194 {"id":1005,"result":{}}
▶ 1.0271701989986468 {"method":"Network.enable","params":{},"id":1006}
◀ 1.0288740469986806 {"id":1006,"result":{}}
▶ 1.029928365998785 {"method":"Browser.getWindowForTarget","params":{"targetId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4"},"id":4}
◀ 1.0310604450060055 {"id":4,"result":{"windowId":2,"bounds":{"left":0,"top":0,"width":1024,"height":768,"windowState":"normal"}}}
▶ 1.0321031490020687 {"method":"Browser.setWindowBounds","params":{"windowId":2,"bounds":{"windowState":"normal"}},"id":5}
◀ 1.0331823640008224 {"id":5,"result":{}}
▶ 1.0343201720097568 {"method":"Browser.setWindowBounds","params":{"windowId":2,"bounds":{"width":1024,"height":768,"windowState":"normal"}},"id":6}
◀ 1.0353918340115342 {"id":6,"result":{}}
▶ 1.0365630800079089 {"method":"Emulation.setDeviceMetricsOverride","params":{"width":1024,"height":768,"deviceScaleFactor":1,"mobile":false},"id":1007}
◀ 1.0391772360017058 {"method":"CSS.mediaQueryResultChanged","params":{}}
◀ 1.040550877005444 {"id":1007,"result":{}}
▶ 1.0415981650003232 {"method":"Page.getNavigationHistory","params":{},"id":1008}
◀ 1.0425910250050947 {"id":1008,"result":{"currentIndex":0,"entries":[{"id":2,"url":"about:blank","userTypedURL":"about:blank","title":"","transitionType":"typed"}]}}
▶ 1.044000499008689 {"method":"Page.navigate","params":{"url":"https://github.com"},"id":1009}
◀ 1.047761474008439 {"method":"Network.requestWillBeSent","params":{"requestId":"5F63D86A854A0376759F821645270E33","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.com/","method":"GET","headers":{"Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"VeryHigh","referrerPolicy":"no-referrer-when-downgrade"},"timestamp":88392.887914,"wallTime":1569898392.779488,"initiator":{"type":"other"},"type":"Document","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 1.9828515050030546 {"method":"Network.responseReceived","params":{"requestId":"5F63D86A854A0376759F821645270E33","loaderId":"5F63D86A854A0376759F821645270E33","timestamp":88393.819962,"type":"Document","response":{"url":"https://github.com/","status":200,"statusText":"OK","headers":{"Date":"Tue, 01 Oct 2019 02:53:13 GMT","Content-Type":"text/html; charset=utf-8","Transfer-Encoding":"chunked","Server":"GitHub.com","Status":"200 OK","Vary":"X-PJAX\nAccept-Encoding","ETag":"W/\"73d0f2c974ca082a31b76afc3076758a\"","Cache-Control":"max-age=0, private, must-revalidate","Set-Cookie":"has_recent_activity=1; path=/; expires=Tue, 01 Oct 2019 03:53:13 -0000\n_octo=GH1.1.1516309723.1569898393; domain=.github.com; path=/; expires=Fri, 01 Oct 2021 02:53:13 -0000\nlogged_in=no; domain=.github.com; path=/; expires=Sat, 01 Oct 2039 02:53:13 -0000; secure; HttpOnly\n_gh_sess=YXRzVVB1QTRhYzZBUHpGNVZYU0Jaa0Jicmo3YWNTRjQ4VkZNM0pBZGlOWmE3MzU0QzA0L2ZYM2kyM2tOd2U0dld6Z3JURlBsdFJtc1FFbTFPY25tV25pWWxXc1BvbTVhejVrVWF2cFRQUm90R3pLMnplV3dpMzh2N0NhNEt6SGxtNHJlaFc1T0pYZXVyMmRwWDUwR2l3PT0tLWJxc2dwNWRmQzltcmI0VVI4RExQSlE9PQ%3D%3D--f77fa132e42a6a2109bf91784018d0900fed7b03; path=/; secure; HttpOnly","X-Request-Id":"acde60bb-f3ff-4d4b-9688-43b832dd355d","Strict-Transport-Security":"max-age=31536000; includeSubdomains; preload","X-Frame-Options":"deny","X-Content-Type-Options":"nosniff","X-XSS-Protection":"1; mode=block","Referrer-Policy":"origin-when-cross-origin, strict-origin-when-cross-origin","Expect-CT":"max-age=2592000, report-uri=\"https://api.github.com/_private/browser/errors\"","Content-Security-Policy":"default-src 'none'; base-uri 'self'; block-all-mixed-content; connect-src 'self' uploads.github.com www.githubstatus.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com wss://live.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; frame-src render.githubusercontent.com; img-src 'self' data: github.githubassets.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com customer-stories-feed.github.com; manifest-src 'self'; media-src 'none'; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com","Content-Encoding":"gzip","X-GitHub-Request-Id":"CBCA:3D3F:561BB3:7FC8D1:5D92BF98"},"headersText":"HTTP/1.1 200 OK\r\nDate: Tue, 01 Oct 2019 02:53:13 GMT\r\nContent-Type: text/html; charset=utf-8\r\nTransfer-Encoding: chunked\r\nServer: GitHub.com\r\nStatus: 200 OK\r\nVary: X-PJAX\r\nETag: W/\"73d0f2c974ca082a31b76afc3076758a\"\r\nCache-Control: max-age=0, private, must-revalidate\r\nSet-Cookie: has_recent_activity=1; path=/; expires=Tue, 01 Oct 2019 03:53:13 -0000\r\nSet-Cookie: _octo=GH1.1.1516309723.1569898393; domain=.github.com; path=/; expires=Fri, 01 Oct 2021 02:53:13 -0000\r\nSet-Cookie: logged_in=no; domain=.github.com; path=/; expires=Sat, 01 Oct 2039 02:53:13 -0000; secure; HttpOnly\r\nSet-Cookie: _gh_sess=YXRzVVB1QTRhYzZBUHpGNVZYU0Jaa0Jicmo3YWNTRjQ4VkZNM0pBZGlOWmE3MzU0QzA0L2ZYM2kyM2tOd2U0dld6Z3JURlBsdFJtc1FFbTFPY25tV25pWWxXc1BvbTVhejVrVWF2cFRQUm90R3pLMnplV3dpMzh2N0NhNEt6SGxtNHJlaFc1T0pYZXVyMmRwWDUwR2l3PT0tLWJxc2dwNWRmQzltcmI0VVI4RExQSlE9PQ%3D%3D--f77fa132e42a6a2109bf91784018d0900fed7b03; path=/; secure; HttpOnly\r\nX-Request-Id: acde60bb-f3ff-4d4b-9688-43b832dd355d\r\nStrict-Transport-Security: max-age=31536000; includeSubdomains; preload\r\nX-Frame-Options: deny\r\nX-Content-Type-Options: nosniff\r\nX-XSS-Protection: 1; mode=block\r\nReferrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin\r\nExpect-CT: max-age=2592000, report-uri=\"https://api.github.com/_private/browser/errors\"\r\nContent-Security-Policy: default-src 'none'; base-uri 'self'; block-all-mixed-content; connect-src 'self' uploads.github.com www.githubstatus.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com wss://live.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; frame-src render.githubusercontent.com; img-src 'self' data: github.githubassets.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com customer-stories-feed.github.com; manifest-src 'self'; media-src 'none'; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com\r\nContent-Encoding: gzip\r\nVary: Accept-Encoding\r\nX-GitHub-Request-Id: CBCA:3D3F:561BB3:7FC8D1:5D92BF98\r\n\r\n","mimeType":"text/html","requestHeaders":{"Host":"github.com","Connection":"keep-alive","Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36","Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3","Accept-Encoding":"gzip, deflate, br"},"requestHeadersText":"GET / HTTP/1.1\r\nHost: github.com\r\nConnection: keep-alive\r\nUpgrade-Insecure-Requests: 1\r\nUser-Agent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3\r\nAccept-Encoding: gzip, deflate, br\r\n","connectionReused":false,"connectionId":13,"remoteIPAddress":"52.192.72.89","remotePort":443,"fromDiskCache":false,"fromServiceWorker":false,"encodedDataLength":2286,"timing":{"requestTime":88392.890846,"proxyStart":-1,"proxyEnd":-1,"dnsStart":0.986,"dnsEnd":71.487,"connectStart":71.487,"connectEnd":596.818,"sslStart":136.465,"sslEnd":596.645,"workerStart":-1,"workerReady":-1,"sendStart":597.009,"sendEnd":597.162,"pushStart":0,"pushEnd":0,"receiveHeadersEnd":915.274},"protocol":"http/1.1","securityState":"secure","securityDetails":{"protocol":"TLS 1.3","keyExchange":"","keyExchangeGroup":"X25519","cipher":"CHACHA20_POLY1305","certificateId":0,"subjectName":"github.com","sanList":["github.com","www.github.com"],"issuer":"DigiCert SHA2 Extended Validation Server CA","validFrom":1525737600,"validTo":1591185600,"signedCertificateTimestampList":[],"certificateTransparencyCompliance":"unknown"}},"frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4"}}
◀ 1.9845451970031718 {"id":1009,"result":{"frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","loaderId":"5F63D86A854A0376759F821645270E33"}}
◀ 1.989838770008646 {"method":"Page.frameStartedLoading","params":{"frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4"}}
◀ 2.003938248002669 {"method":"Target.targetInfoChanged","params":{"targetInfo":{"targetId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","type":"page","title":"https://github.com","url":"https://github.com/","attached":true,"browserContextId":"B29FE9DF9135379F47844E5D66ECE356"}}}
◀ 2.0053657950047636 {"method":"Network.dataReceived","params":{"requestId":"5F63D86A854A0376759F821645270E33","timestamp":88393.832301,"dataLength":21844,"encodedDataLength":0}}
◀ 2.006450738001149 {"method":"Runtime.executionContextDestroyed","params":{"executionContextId":1}}
◀ 2.0071786519984016 {"method":"Runtime.executionContextsCleared","params":{}}
◀ 2.0079596910072723 {"method":"Page.frameNavigated","params":{"frame":{"id":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","loaderId":"5F63D86A854A0376759F821645270E33","url":"https://github.com/","securityOrigin":"https://github.com","mimeType":"text/html"}}}
◀ 2.0091104160092073 {"method":"Runtime.executionContextCreated","params":{"context":{"id":2,"origin":"https://github.com","name":"","auxData":{"isDefault":true,"type":"default","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4"}}}}
◀ 2.0097306220122846 {"method":"DOM.documentUpdated","params":{}}
◀ 2.042762370998389 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.3","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/assets/frameworks-849637ecbd4bd65815cc113d80fee2d4.css","method":"GET","headers":{"User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36","Referer":"https://github.com/","Origin":"https://github.com"},"mixedContentType":"none","initialPriority":"VeryHigh","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.854982,"wallTime":1569898393.74655,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":20},"type":"Stylesheet","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.044876270010718 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.4","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/assets/site-d20aa35917cf810095fab7458ea2a8e4.css","method":"GET","headers":{"User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36","Referer":"https://github.com/","Origin":"https://github.com"},"mixedContentType":"none","initialPriority":"VeryHigh","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.855939,"wallTime":1569898393.74751,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":21},"type":"Stylesheet","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.046697096011485 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.5","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/assets/github-ae81e416c83f4ddf38bf4c8c149384b3.css","method":"GET","headers":{"User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36","Referer":"https://github.com/","Origin":"https://github.com"},"mixedContentType":"none","initialPriority":"VeryHigh","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.857585,"wallTime":1569898393.74916,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":22},"type":"Stylesheet","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.049374117006664 {"method":"Network.dataReceived","params":{"requestId":"5F63D86A854A0376759F821645270E33","timestamp":88393.871806,"dataLength":42431,"encodedDataLength":0}}
◀ 2.050734320000629 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.11","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/search-key-slash.svg","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.875744,"wallTime":1569898393.76732,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":307},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.052082649010117 {"method":"Network.dataReceived","params":{"requestId":"5F63D86A854A0376759F821645270E33","timestamp":88393.880571,"dataLength":28996,"encodedDataLength":0}}
◀ 2.0814087870094227 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.13","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/logos/airbnb-logo.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.906309,"wallTime":1569898393.79788,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":849},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.0832307070086244 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.14","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/logos/sap-logo.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.907279,"wallTime":1569898393.79885,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":850},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.084952263001469 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.15","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/logos/ibm-logo.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.908393,"wallTime":1569898393.79997,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":851},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.0868804330093553 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.16","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/logos/google-logo.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.909463,"wallTime":1569898393.80104,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":852},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.089058185010799 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.17","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/logos/paypal-logo.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.910791,"wallTime":1569898393.80236,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":853},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.110188885999378 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.18","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/logos/bloomberg-logo.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.911854,"wallTime":1569898393.80343,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":854},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.120512753012008 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.19","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/logos/spotify-logo.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.912806,"wallTime":1569898393.80438,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":855},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.1221644660108723 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.20","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/logos/swift-logo.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.913602,"wallTime":1569898393.80517,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":856},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.123635866009863 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.21","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/logos/facebook-logo.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.914431,"wallTime":1569898393.806,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":857},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.125166017009178 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.22","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/logos/node-logo.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.915275,"wallTime":1569898393.80685,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":858},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.1266405950009357 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.23","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/logos/nasa-logo.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.916099,"wallTime":1569898393.80767,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":859},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.1281924120121403 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.24","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/logos/walmart-logo.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.916932,"wallTime":1569898393.8085,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":860},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.1298650090029696 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.25","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/home-illo-team.svg","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.91786,"wallTime":1569898393.80943,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":889},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.1313909410091583 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.26","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/home-illo-team-code.svg","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.918823,"wallTime":1569898393.8104,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":894},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.132929477011203 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.27","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/home-illo-team-chaos.svg","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.919621,"wallTime":1569898393.81119,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":906},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.134195514008752 {"method":"Network.dataReceived","params":{"requestId":"5F63D86A854A0376759F821645270E33","timestamp":88393.927773,"dataLength":37042,"encodedDataLength":0}}
◀ 2.1354814460064517 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.43","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/home-illo-team-tools.svg","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.946363,"wallTime":1569898393.83794,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":918},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.1368935240025166 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.44","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/home-illo-business.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.947328,"wallTime":1569898393.8389,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":1084},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.138382842007559 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.45","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/integrators/slackhq.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.94824,"wallTime":1569898393.83981,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":1133},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.1399030960019445 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.46","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/integrators/zenhubio.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.949192,"wallTime":1569898393.84076,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":1134},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.141329862002749 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.47","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/integrators/travis-ci.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.950153,"wallTime":1569898393.84173,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":1135},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.1426674610120244 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.48","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/integrators/atom.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.95114,"wallTime":1569898393.84271,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":1136},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.143923914001789 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.49","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/integrators/circleci.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.952888,"wallTime":1569898393.84446,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":1137},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.145344638003735 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.50","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/integrators/google.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.953761,"wallTime":1569898393.84533,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":1138},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.146793225998408 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.51","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/images/modules/site/integrators/codeclimate.png","method":"GET","headers":{"Referer":"https://github.com/","User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.954713,"wallTime":1569898393.84629,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":1139},"type":"Image","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.1480730650073383 {"method":"Network.dataReceived","params":{"requestId":"5F63D86A854A0376759F821645270E33","timestamp":88393.960225,"dataLength":4446,"encodedDataLength":0}}
◀ 2.1549255389982136 {"method":"Network.loadingFinished","params":{"requestId":"5F63D86A854A0376759F821645270E33","timestamp":88393.930523,"encodedDataLength":42524,"shouldReportCorbBlocking":false}}
◀ 2.1634640490083257 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.61","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/assets/compat-bootstrap-94789d4c.js","method":"GET","headers":{"User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36","Referer":"https://github.com/","Origin":"https://github.com"},"mixedContentType":"none","initialPriority":"Medium","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.996448,"wallTime":1569898393.88802,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":1495},"type":"Script","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.165261073008878 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.62","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/assets/frameworks-ace387cc.js","method":"GET","headers":{"User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36","Referer":"https://github.com/","Origin":"https://github.com"},"mixedContentType":"none","initialPriority":"Medium","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88393.998947,"wallTime":1569898393.89052,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":1496},"type":"Script","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
◀ 2.167020702006994 {"method":"Network.requestWillBeSent","params":{"requestId":"1000025891.63","loaderId":"5F63D86A854A0376759F821645270E33","documentURL":"https://github.com/","request":{"url":"https://github.githubassets.com/assets/github-bootstrap-17708fdc.js","method":"GET","headers":{"User-Agent":"Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Raspbian Chromium/74.0.3729.157 HeadlessChrome/74.0.3729.157 Safari/537.36","Referer":"https://github.com/","Origin":"https://github.com"},"mixedContentType":"none","initialPriority":"Low","referrerPolicy":"strict-origin-when-cross-origin"},"timestamp":88394.000665,"wallTime":1569898393.89224,"initiator":{"type":"parser","url":"https://github.com/","lineNumber":1498},"type":"Script","frameId":"FCFEBF345D5F5511DB0D10A7FCCAA7F4","hasUserGesture":false}}
▶ 12.00082179500896 {"method":"Page.navigate","params":{"url":"https://www.google.com"},"id":1010}
Traceback (most recent call last):
4: from tamanager.rb:7:in `<main>'
3: from /home/pi/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/forwardable.rb:230:in `goto'
2: from /home/pi/.rvm/gems/ruby-2.6.3/gems/ferrum-0.5/lib/ferrum/page.rb:66:in `goto'
1: from /home/pi/.rvm/gems/ruby-2.6.3/gems/ferrum-0.5/lib/ferrum/page.rb:110:in `command'
/home/pi/.rvm/gems/ruby-2.6.3/gems/ferrum-0.5/lib/ferrum/browser/client.rb:41:in `command': Browser is dead (Ferrum::DeadBrowserError)
from ferrum.
Sorry I don't have raspberry for a test but are you sure you have enough memory?
from ferrum.
I checked the available RAM and that doesn't seem to be a memory issue.
As mentionned it's not only happening for screenshots but any interaction. I can't do more than one goto() for instance.
This is where it fails.
I checked and noticed that data is nil and @ws.messages.closed? returns true too. And @pendings
equals {}
.
Any idea why this situation happens?
from ferrum.
You don't need chrome driver BTW, only chrome. I could also try to use the latest Chrome if possible.
As for why this is happening, for some reason when you issue subsequent Page.navigate
we send it to chrome and start waiting for response if nothing returned then data is nil and we check if for some reason message queue is closed which can happen only when socket is closed in case of error or when chrome dies. Try to set timeout to a higher value, it's 5 by default, try to use latest chrome, and check if chrome process really dead while setting timeout to a higher value. That's all clues so far :)
from ferrum.
I'm gonna close issue for now, let me know if anything from the things I had mentioned above helped.
from ferrum.
Related Issues (20)
- Browser start fails with JRuby on Windows
- Chrome error: "Unable to create temporary file" on Windows with JRuby HOT 1
- Errno::ECONNREFUSED on browser initialization HOT 3
- Headless new gives Ferrum::NoSuchPageError on screenshot HOT 2
- consider using === in network blacklist matching
- Doesn't work on ruby 3.2 HOT 1
- Saving via browser.mhtml and via cmd+S differs a lot on Youtube HOT 3
- Network.loadingFailed error preventing file from downloading HOT 13
- Conditionally Render Page header and footer template HOT 2
- browser.quit doesn't close session HOT 6
- Include type and stackTrace in logging for console API
- `wait_for_network_idle` failing due to pending requests on previous page HOT 1
- Remove `disable-gpu`default flag for Apple Silicon HOT 3
- authenticate current_user in ferrum browser
- Hang/Timeout in dialog HOT 9
- Ferrum::PendingConnectionsError - what to do?
- Browserless 2.0 support HOT 12
- Permission denied when using Firefox HOT 1
- warning: base64 was loaded from the standard library, but will no longer be part of the default gems since Ruby 3.4.0.
- How to add images for PDF ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ferrum.