sbmzhcn
V2EX  ›  问与答

Selenium 操纵 chrome 浏览器,如果让打开的窗口不遮挡其它软件界面

  •  
  •   sbmzhcn · Jan 4, 2015 · 4631 views
    This topic created in 4172 days ago, the information mentioned may be changed or developed.

    selenium下打开一个chrome浏览器,默认会在所有界面的最前面,因为这个窗口是激活状态应该,我想知道,如果设置才能让打开的浏览器默认不在最前,不影响我看其它。

    3 replies    2015-01-04 23:03:09 +08:00
    kanchi240
        1
    kanchi240  
       Jan 4, 2015
    不明白你为什么要看其他呢?正常情况下自动化无人值守的,你需要看什么?
    sonfly
        2
    sonfly  
       Jan 4, 2015
    Xvfb即可
    sumhat
        3
    sumhat  
       Jan 4, 2015
    不在 active 状态有些事件无法触发的,比如 get-focus。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3102 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 13:52 · PVG 21:52 · LAX 06:52 · JFK 09:52
    ♥ Do have faith in what you're doing.