Code Monkey home page Code Monkey logo

Comments (7)

fimdomeio avatar fimdomeio commented on May 14, 2024

on further investigation this appears to be risizeing the html document window but not the browser window.

from navalia.

joelgriffith avatar joelgriffith commented on May 14, 2024

Yup, can verify. Appears to be a shortcoming of the Chrome devtools protocol. Seems that resizing prior to navigating works for a quick fix until i find a more robust solution

from navalia.

joelgriffith avatar joelgriffith commented on May 14, 2024

Seems the sites that are most vulnerable to this are those that aren't responsive. @fimdomeio is there a site I can test against that more acutely exhibits this behavior?

from navalia.

fimdomeio avatar fimdomeio commented on May 14, 2024

I detected this on a site I'm developing so it's not publicly available. But I can confirm the same behavior on google.com.

from navalia.

joelgriffith avatar joelgriffith commented on May 14, 2024

Yeah, google.com seems to have issues, but https://www.chromestatus.com/features seems to work. (Make sure your on Canary)

If you're up for it, there's a beta build up [email protected]. Try something like this script:

// npm i --save [email protected]
const { Chrome } = require('navalia');
const chrome = new Chrome();

chrome.goto('https://www.chromestatus.com/')
.then(() => chrome.screenshot('/Users/jgriffith/Downloads/google.png')) // Change filepath here
.then(() => chrome.done());

from navalia.

fimdomeio avatar fimdomeio commented on May 14, 2024

Hello. Did not have the time to test extensively but it seems to be fixed when using Chrome Canary on the latest version of your code.

from navalia.

joelgriffith avatar joelgriffith commented on May 14, 2024

Very good. I'll make sure to broadcast this in the docs

from navalia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.