sbmzhcn
V2EX  ›  问与答

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

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

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

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