如何告诉Python在网站按钮上按下鼠标左键?

时间:2015-04-09 16:06:11

标签: python html button tkinter web

我想用Python在网站按钮上按下鼠标左键。我的代码我正在尝试:

from TKinter import *
import webbrowser

def blackdesertonline():
    webbrowser.open("http://black.game.daum.net/black/index.daum",
        new=1,
        autoraise=True)

main = Tk()

bblackdesertonline = Button(main,
    text = "Start Black Desert Online",
    command = blackdesertonline)

bblackdesertonline.pack()

main.mainloop()

如何告诉程序按下按钮?

1 个答案:

答案 0 :(得分:1)

您需要使用专门设计用于自动化网站的库,例如selenium