V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
webnote
V2EX  ›  程序员

GetWindowText chrome 下获取不到alert内容

  •  
  •   webnote · 2012-05-12 20:37:38 +08:00 · 3221 次点击
    这是一个创建于 4363 天前的主题,其中的信息可能已经有所发展或是发生改变。
    使用
    h = win32gui.FindWindowEx(None, None, None, 'Javascript 提醒')
    childh = win32gui.GetWindow(h, win32con.GW_CHILD)
    while childh:
    print win32gui.GetWindowText(childh)
    childh = win32gui.GetWindow(childh, 2)

    IE下能获取到 alert 窗口内容 (不是窗口标题)
    Chrome下获取不到

    有谁写过吗 求指教
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3380 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 12:10 · PVG 20:10 · LAX 05:10 · JFK 08:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.