Coder Social home page Coder Social logo

Comments (4)

stevepryde avatar stevepryde commented on July 22, 2024 1

I've had a look into this and confirmed that the headless flag is not working.

After some investigation I discovered that the goog:chromeOptions JSON is indeed sent with the alwaysMatch capabilities, so I'll need to update Xenon to pass those through.

The reason it strips some capabilities out there is because if we do the filtering ourselves in Xenon, we don't want chromedriver also doing its own filtering and deciding not to run the session we send to it.

It's easy enough to just pick out the goog:chromeOptions and moz:firefoxOptions keys and pass those through specifically, or alternatively I can try just passing through the alwaysMatch JSON verbatim and let it fail if the client does something wrong. The latter is probably the better option.

from xenon.

stevepryde avatar stevepryde commented on July 22, 2024

And confirmed that works if I pass through all of the capabilities verbatim.
I've pushed the fix to latest main branch so if you pull that and try again it should hopefully work. Let me know how it goes.

I have not tested the impact this has on filtering. We can address that later if there is an issue (perhaps we can strip out the browserName, browserVersion and platformName if we need to).

from xenon.

stevepryde avatar stevepryde commented on July 22, 2024

Also consider running via xvfb instead (see instructions at the bottom of the README) which allows you to vnc in and view the session if you need to.

Either way you would still need the above fix in order to pass through any other chrome/firefox options

from xenon.

zhiburt avatar zhiburt commented on July 22, 2024

I can confirm that after 3b106ec headless works 👍

from xenon.

Related Issues (6)

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.