Giter VIP home page Giter VIP logo

Comments (8)

krcm0209 avatar krcm0209 commented on July 28, 2024

Tried multiple ways of doing this within selenium, and all failed. Seems to really achieve this well, a new import would be required.

from nvidia-sniper.

philippnormann avatar philippnormann commented on July 28, 2024

I also failed using driver.switch_to_window() and various other way but I think driver.maximize() might work...

from nvidia-sniper.

hwamil avatar hwamil commented on July 28, 2024

There's also the option of fullscreening which is available in selenium.

driver.fullscreen_window()

from nvidia-sniper.

krcm0209 avatar krcm0209 commented on July 28, 2024

I had tried .switch_to_window(), .maximize(), and whatever the fullscreen one is (followed by a set window size) and none of them worked as expected on Windows. Most promising one seemed to be setting fullscreen, followed immediately by setting a size smaller than fullscreen. The behavior I observed with that was Firefox bringing itself in front of some windows, but it was still behind other windows, including Chrome.

from nvidia-sniper.

hwamil avatar hwamil commented on July 28, 2024

I'm testing on Linux Mint and seems like driver.fullscreen_window() and driver.maximize_window() both bring minimized window to focus.

from nvidia-sniper.

krcm0209 avatar krcm0209 commented on July 28, 2024

@hwamil what if the window is not minimized, but behind other windows?

from nvidia-sniper.

hwamil avatar hwamil commented on July 28, 2024

@krcm0209 Just tried and it also brings it to the top

from nvidia-sniper.

krcm0209 avatar krcm0209 commented on July 28, 2024

Hmm, perhaps Windows will just be noted as YMMV.

from nvidia-sniper.

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.