Giter Club home page Giter Club logo

Comments (8)

jonhoo avatar jonhoo commented on August 30, 2024 1

Could very well be — I've lost the context on this in the intervening years 😅

from fantoccini.

jonhoo avatar jonhoo commented on August 30, 2024

See also d2843b0

from fantoccini.

phrohdoh avatar phrohdoh commented on August 30, 2024

AFAICT there are no such commands as the spec only lists SetWindowRect and GetWindowRect.

from fantoccini.

jonhoo avatar jonhoo commented on August 30, 2024

Yeah, the spec only has those, but to be helpful there are a couple of places where we fall back to the original Selenium protocol (this is what the legacy field is for).

from fantoccini.

phrohdoh avatar phrohdoh commented on August 30, 2024

Oh I see, I did not understand previously. Sounds easy enough.

from fantoccini.

jonhoo avatar jonhoo commented on August 30, 2024

It looks like there are also some test failures in Chrome on macOS: https://travis-ci.org/jonhoo/fantoccini/jobs/378871411#L873. My guess is that it's related to the window decorations causing an offset in the returned values (see https://github.com/SeleniumHQ/selenium/blob/6103ef6c923ea43c71779be9a05cc3a6248d1b53/javascript/node/selenium-webdriver/test/window_test.js#L125)

from fantoccini.

jonhoo avatar jonhoo commented on August 30, 2024

Sadly these tests also fail when running on a machine with a tiling window manager :(

from fantoccini.

stevepryde avatar stevepryde commented on August 30, 2024

@jonhoo I'm running into this with thirtyfour now. I notice the relevant tests are marked as ignored for now. It seems chromedriver returns only the width and height in this situation, which to my reading goes against the spec. Is this actually a bug in chromedriver on MacOS? I'm happy to raise an issue there given that it's quite easy to reproduce.

I'll probably mask the test failure in thirtyfour for now.

from fantoccini.

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.