Giter Site home page Giter Site logo

Comments (6)

mxschmitt avatar mxschmitt commented on May 11, 2024

Probably related to #47

Unfortunately it's not possible to specify the revision since WebKit or Firefox are tight to the specific Playwright release, but we will allow in the future to only install a single browser. (For Chromium its not that bound but we still support only the given version).

Why do you want to install a specific version?

from playwright-python.

Granitosaurus avatar Granitosaurus commented on May 11, 2024

Why do you want to install a specific version?

Different versions behave differently and newer versions have many performance improvements. The current chromium version for example is a bit dated 😬

from playwright-python.

mxschmitt avatar mxschmitt commented on May 11, 2024

Why do you want to install a specific version?

Different versions behave differently and newer versions have many performance improvements. The current chromium version for example is a bit dated 😬

Playwright does only support one of the latest versions of Chromium since we rely on features in the Chrome DevTools Protocol which were added especially because of Playwrights needs.

To use a different version which is a few weeks behind would probably work but does not make much sense then.

from playwright-python.

Granitosaurus avatar Granitosaurus commented on May 11, 2024

Playwright does only support one of the latest versions of Chromium

I think you misunderstood me. The current version that comes installed right now is 792639 where the newest one at the time of writing is:

$ curl https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2FLAST_CHANGE?alt=media                                                                                                                      
798041

That's 5402 revisions/commits behind or whatever the number implies or time-wise speaking it's over 2 weeks old as the coded release is from 2020-07-29.

Nevertheless it would be nice to have control over which version of the browser playwright automates. I've tried changing browsers.json but seems like it's only being picked up by install command and playwright's code is not picking up the change.

from playwright-python.

pavelfeldman avatar pavelfeldman commented on May 11, 2024

You can pass executablePath into launch and use any browser at your own risk!

from playwright-python.

mxschmitt avatar mxschmitt commented on May 11, 2024

You can as Pavel outlined the executablePath. There are no plans to support custom versions and using executablePath is at your own risk.

from playwright-python.

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.